class Spec::Runner::Reporter

Public Instance Methods

example_failed(example, error)
Alias for: failure
example_finished(example, error=nil) click to toggle source
# File lib/deep_test/spec/extensions/reporter.rb, line 5
def example_finished(example, error=nil)
  @examples << example
  
  if error.nil?
    example_passed(example)
  elsif Spec::Example::ExamplePendingError === error
    example_pending(example, error.message)
  else
    example_failed(example, error)
  end
end
failure(example, error) click to toggle source
# File lib/deep_test/spec/extensions/reporter.rb, line 17
def failure(example, error)
  backtrace_tweaker.tweak_backtrace(error)
  example_name = "#{example.class.description} #{example.description}"
  failure = Failure.new(example, error)
  @failures << failure
  formatters.each do |f|
    f.example_failed(example, @failures.length, failure)
  end
end
Also aliased as: example_failed