lib/deep_test/spec/extensions/reporter.rb in deep_test-1.2.0 vs lib/deep_test/spec/extensions/reporter.rb in deep_test-1.2.1
- old
+ new
@@ -6,19 +6,19 @@
@examples << example
if error.nil?
example_passed(example)
elsif Spec::Example::ExamplePendingError === error
- example_pending(example.class, example, error.message)
+ example_pending(example, error.message)
else
example_failed(example, error)
end
end
def failure(example, error)
backtrace_tweaker.tweak_backtrace(error)
example_name = "#{example.class.description} #{example.description}"
- failure = Failure.new(example_name, error)
+ failure = Failure.new(example, error)
@failures << failure
formatters.each do |f|
f.example_failed(example, @failures.length, failure)
end
end