method
example_failed
1.2.0 -
Show latest stable
- Class:
Spec::Runner::Reporter
example_failed(example, error)public
No documentation available.
# File lib/spec/runner/reporter.rb, line 35
def example_failed(example, error)
backtrace_tweaker.tweak_backtrace(error)
failure = Failure.new(example_groups.empty? ? "" : example_groups.last.description, example, error)
@failures << failure
formatters.each do |f|
f.example_failed(example, @failures.length, failure)
end
end