Skip to content

Instantly share code, notes, and snippets.

@leviwilson
Created April 22, 2013 16:20
Show Gist options
  • Save leviwilson/5436445 to your computer and use it in GitHub Desktop.
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
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
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
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