Created
February 2, 2015 10:49
-
-
Save simonwo/7efe52ec1a98c5c8a276 to your computer and use it in GitHub Desktop.
Pending scenarios in Cucumber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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