Sha256: d7e2c10d70c8d37adc13f30c9831771d3f4acb25a9b583174ad72424b3dc4a1e
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
require 'spackle/spec/base_formatter' module Spackle::Spec class SpackleFormatter < BaseFormatter def example_failed(example, counter, failure) error = Spackle::Error.new failure.exception.message failure.exception.backtrace.each do |frame| file, line = frame.match(/^([^:]+):([0-9]+)/)[1,2] error.add_error file, line end self.errors << error end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spackle-0.0.3 | lib/spackle/spec/spackle_formatter.rb |
spackle-0.0.2 | lib/spackle/spec/spackle_formatter.rb |
spackle-0.0.1 | lib/spackle/spec/spackle_formatter.rb |