From 22101898147538b2086127955409d56182b35cea Mon Sep 17 00:00:00 2001 From: Andrew Walter Date: Sat, 19 May 2018 21:17:39 +1000 Subject: [PATCH] Moved `@requires-bash` before hook to hooks.rb --- features/step_definitions/hooks.rb | 4 ++++ features/support/env.rb | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) 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