Skip to content

Commit

Permalink
Remove code supporting cucumber 3 from simplecov set-up
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Apr 23, 2022
1 parent 96d10bc commit 7a897bd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
require "aruba/config/jruby"
require "rspec/expectations"

Before do |scenario|
command_name = if scenario.respond_to?(:feature) # Cucumber < 4
"#{scenario.feature.file} #{scenario.name}"
else
"#{scenario.location.file}:#{scenario.location.line} # #{scenario.name}"
end
Before do |test_case|
command_name = "#{test_case.location.file}:#{test_case.location.line} # #{test_case.name}"

# Used in simplecov_setup so that each scenario has a different name and
# their coverage results are merged instead of overwriting each other as
Expand Down

0 comments on commit 7a897bd

Please sign in to comment.