diff --git a/features/step_definitions/hooks.rb b/features/step_definitions/hooks.rb index b0e67136e..d64e50e03 100644 --- a/features/step_definitions/hooks.rb +++ b/features/step_definitions/hooks.rb @@ -136,3 +136,7 @@ skip_this_scenario end end + +Before('@requires-bash') do |scenario| + skip_this_scenario unless Aruba.platform.which('bash') +end diff --git a/features/support/env.rb b/features/support/env.rb index 171a7ea16..e1cdc6550 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -25,8 +25,4 @@ # set environment variable so child processes will merge their coverage data with parent process's coverage data. ENV['RUBYOPT'] = "-r#{simplecov_setup_pathname} #{ENV['RUBYOPT']}" -end - -Before('@requires-bash') do |scenario| - skip_this_scenario unless Aruba.platform.which('bash') end \ No newline at end of file