Skip to content

Instantly share code, notes, and snippets.

@bfaloona
Created October 20, 2010 07:47
Show Gist options
  • Save bfaloona/635984 to your computer and use it in GitHub Desktop.
Save bfaloona/635984 to your computer and use it in GitHub Desktop.
# bug 672 repros when cucumber is called with line number on feature below, e.g.:
$ cucumber features/failing_before_hook_in_background.feature:4
# env.rb
Before('@bug672') do |scenario|
raise Exception, "Exception from before hook tagged @bug672"
end
# features/failing_before_hook_in_background.feature
@bug672
Feature: Failing before hook example
Background:
Given this step works
And this step works
Scenario: failing background
Then this step works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment