From 7a897bd7166f014f47e2ae1ee02ac99c4f745f13 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Sat, 23 Apr 2022 10:02:38 +0200 Subject: [PATCH] Remove code supporting cucumber 3 from simplecov set-up --- features/support/env.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/features/support/env.rb b/features/support/env.rb index ea75101e2..4a4e7fb06 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -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