Sha256: 32adbe7924ac2ecccd02eb0004a2bd63915a555b5d250c4ce68483df877a3240
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 Bytes
Contents
require 'spec/runner/reporter' module Spec module Runner class Reporter def example_finished(example, error=nil) @examples << example if error.nil? example_passed(example) elsif Spec::Example::ExamplePendingError === error example_pending(example.class, 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) @failures << failure formatters.each do |f| f.example_failed(example, @failures.length, failure) end end alias_method :example_failed, :failure end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deep_test-1.1.4 | lib/deep_test/spec/extensions/reporter.rb |
deep_test-1.2.0 | lib/deep_test/spec/extensions/reporter.rb |