Skip to content

Commit

Permalink
avoid NoMethodError on failing scenario (caused by RSpec change maybe?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Stokes committed May 8, 2009
1 parent 98519c6 commit ce3efc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spec/runner/formatter/story/plain_text_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def scenario_succeeded(story_title, scenario_name)
end

def scenario_failed(story_title, scenario_name, err)
@options.backtrace_tweaker.tweak_backtrace(err)
@options.backtrace_tweaker.tweak_backtrace(err) if @options.backtrace_tweaker
@failed_scenarios << [story_title, scenario_name, err] unless @scenario_already_failed
@scenario_already_failed = true
@story_failed = true
Expand Down

0 comments on commit ce3efc2

Please sign in to comment.