Class: Spec::Runner::Formatter::BaseTextFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/merb-core/test/run_spec.rb

Instance Method Summary collapse

Instance Method Details

#dump_failure(counter, failure) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/merb-core/test/run_spec.rb', line 10

def dump_failure(counter, failure)
  @output.puts
  @output.puts "#{counter.to_s})"
  @output.puts colorize_failure("#{failure.header}\n#{failure.exception.message}", failure)
  @output.puts format_backtrace(failure.exception.backtrace)
  @output.flush
end