Created
April 22, 2013 16:20
-
-
Save leviwilson/5436445 to your computer and use it in GitHub Desktop.
Example to illustrate that RubyMine does not display error information if it happens in a cucumber hook
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
Feature: Illustrating that RubyMine eats error output in hooks | |
Scenario: Some scenario that should fail | |
When I so something that will fail | |
Then this step will never execute |
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
When(/^I so something that will fail$/) do | |
true.should be_true # the hook will fail, so this should never happen | |
end | |
Then(/^this step will never execute$/) do | |
pending | |
end |
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
Before do | |
# RubyMine does not display the information from this exception, and you will only see | |
# | |
# Step Skipped | |
# | |
# in the output. | |
raise "Something bad happened in a hook" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment