/vendor/bundle/jruby/2.1/gems/rspec-core-2.14.8/lib/rspec/core/formatters/progress_formatter.rb
https://github.com/delowong/logstash · Ruby · 32 lines · 25 code · 7 blank · 0 comment · 0 complexity · 0ce1cf0401d948a23fea08f87c6292f4 MD5 · raw file
- require 'rspec/core/formatters/base_text_formatter'
- module RSpec
- module Core
- module Formatters
- class ProgressFormatter < BaseTextFormatter
- def example_passed(example)
- super(example)
- output.print success_color('.')
- end
- def example_pending(example)
- super(example)
- output.print pending_color('*')
- end
- def example_failed(example)
- super(example)
- output.print failure_color('F')
- end
- def start_dump
- super()
- output.puts
- end
- end
- end
- end
- end