Sha256: b0739fc39d75751cd1663f67d4e4c728a8b8e546b0fa46f4b6f317c64f1a017b
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
require 'spec/runner/formatter/base_text_formatter' # Example of a custom formatter. Run me with: # bin/spec examples -r examples/custom_formatter.rb -f CustomFormatter # bin/spec failing_examples -r examples/custom_formatter.rb -f CustomFormatter class CustomFormatter < Spec::Runner::Formatter::BaseTextFormatter def add_context(name, first) @output << "\n" if first end def spec_failed(name, counter, failure) @output << 'X' end def spec_passed(name) @output << '_' end def start_dump @output << "\n" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-0.6.4 | examples/custom_formatter.rb |