Skip to content

Instantly share code, notes, and snippets.

@denro
Created July 22, 2010 09:42
Show Gist options
  • Save denro/485785 to your computer and use it in GitHub Desktop.
Save denro/485785 to your computer and use it in GitHub Desktop.
# Formatter for just putting out the error message during runtime
# use with Rspec by --require <path_to_this_file> --formatter FailuresDuringRunFormatter
require 'spec/runner/formatter/progress_bar_formatter'
class FailuresDuringRunFormatter < Spec::Runner::Formatter::ProgressBarFormatter
def example_failed(example, counter, failure)
super #show the 'F' in progress
dump_failure(counter, failure)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment