PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

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