Skip to content

Instantly share code, notes, and snippets.

@timbertson
Created August 27, 2010 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timbertson/553733 to your computer and use it in GitHub Desktop.
Save timbertson/553733 to your computer and use it in GitHub Desktop.
require 'spec/runner/formatter/specdoc_formatter'
#monkey-patch the specdoc formatter to immediately print failure messages (and continue)
module Spec
module Runner
module Formatter
class SpecdocFormatter
alias :example_failed_without_immediate_feedback :example_failed
def example_failed(example, counter, failure)
example_failed_without_immediate_feedback(example, counter, failure)
dump_failure(counter, failure) # dump stacktrace immediately
output.flush
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment