From bdad6eac0cc35e59feb9f9e7bc0493d424c5c636 Mon Sep 17 00:00:00 2001 From: Andrew Walter Date: Sat, 19 May 2018 21:23:02 +1000 Subject: [PATCH] Updated `@requires-bash` before hook. --- features/step_definitions/hooks.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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