Skip to content

Commit

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

0 comments on commit 4f687e5

Please sign in to comment.