Skip to content

Instantly share code, notes, and snippets.

@simonwo
Created February 2, 2015 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonwo/7efe52ec1a98c5c8a276 to your computer and use it in GitHub Desktop.
Save simonwo/7efe52ec1a98c5c8a276 to your computer and use it in GitHub Desktop.
Pending scenarios in Cucumber
# Place me in your support/ directory and then use the @pending tag
Unless Cucumber::VERSION =~ /^2\./
Around '@pending' do |scenario, block|
scenario.steps.each &:skip_invoke!
block.call
scenario.steps.each {|step| step.status! :pending}
end
else
raise "Well done on upgrading to Cucumber 2. It's time to delete #{__FILE__}!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment