diff --git a/features/step_definitions/hooks.rb b/features/step_definitions/hooks.rb index d64e50e03..faa0ea557 100644 --- a/features/step_definitions/hooks.rb +++ b/features/step_definitions/hooks.rb @@ -138,5 +138,11 @@ end Before('@requires-bash') do |scenario| - skip_this_scenario unless Aruba.platform.which('bash') + next if Aruba.platform.which('bash') + + if Cucumber::VERSION < '2' + scenario.skip_invoke! + else + skip_this_scenario + end end