Skip to content

Commit bb5aad1

Browse files
committed
skip method coverage features if not supported
1 parent b5c29b4 commit bb5aad1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

features/support/env.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
skip_this_scenario unless SimpleCov.branch_coverage_supported?
2929
end
3030

31+
Before("@method_coverage") do
32+
skip_this_scenario unless SimpleCov.method_coverage_supported?
33+
end
34+
3135
Before("@rails6") do
3236
# Rails 6 only supports Ruby 2.5+
3337
skip_this_scenario if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.5")

0 commit comments

Comments
 (0)