Skip to content

Commit

Permalink
Use visit_exception for capturing failed scenarios rather than hookin…
Browse files Browse the repository at this point in the history
…g into the Progress formatters progress method
  • Loading branch information
josephwilk committed Apr 11, 2009
1 parent 1ab2571 commit b404f37
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions formatters/in_progress.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ def visit_feature_element(feature_element)

@io.flush
end

private

def progress(status)
@scenario_passed = false unless status == :passed
def visit_exception(exception, status)
@scenario_passed = false
super
end


private

def print_summary
unless @passing_scenarios.empty?
@io.puts format_string("(::) Scenarios passing which should be failing or pending (::)", :invalid_pass)
Expand Down

0 comments on commit b404f37

Please sign in to comment.