Skip to content

Commit

Permalink
Updated @requires-bash before hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrasimplicity committed May 19, 2018
1 parent 2210189 commit bdad6ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion features/step_definitions/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bdad6ea

Please sign in to comment.