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