/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

  1. require 'rspec/core/formatters/base_text_formatter'
  2. module RSpec
  3. module Core
  4. module Formatters
  5. class ProgressFormatter < BaseTextFormatter
  6. def example_passed(example)
  7. super(example)
  8. output.print success_color('.')
  9. end
  10. def example_pending(example)
  11. super(example)
  12. output.print pending_color('*')
  13. end
  14. def example_failed(example)
  15. super(example)
  16. output.print failure_color('F')
  17. end
  18. def start_dump
  19. super()
  20. output.puts
  21. end
  22. end
  23. end
  24. end
  25. end