Skip to content

Instantly share code, notes, and snippets.

require Spec::Runner::Options::EXAMPLE_FORMATTERS["profile"].first
Spec::Runner::Formatter::ProgressBarFormatter.class_eval do
def example_failed(example, counter, failure)
@output.print colourise('F', failure)
exception = failure.exception
@output.print "\n#{exception.message}\n#{exception.backtrace.join("\n\t")}\n"
@output.flush
end
end