# 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
# 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
Generated with the Darkfish Rdoc Generator 2.