Sha256: 27a9dc45d35a0eefae031fa13b43c81a12b1c33285ab8dfcedcea8db3a545fd5

Contents?: true

Size: 664 Bytes

Versions: 4

Compression:

Stored size: 664 Bytes

Contents

module Spec
  module Runner
    module Formatter
      class ProgressBarFormatter < BaseTextFormatter
        def add_behaviour(name)
        end
      
        def example_failed(name, counter, failure)
          @output.print failure.expectation_not_met? ? red('F') : magenta('F')
          @output.flush
        end

        def example_passed(name)
          @output.print green('.')
          @output.flush
        end
      
        def example_not_implemented(name)
          @output.print yellow('*')
          @output.flush
        end
        
        def start_dump
          @output.puts
          @output.flush
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
has_finder-0.1.1 spec/rails/vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb
has_finder-0.1.2 spec/rails/vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb
has_finder-0.1.3 spec/rails/vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb
rspec-1.0.5 lib/spec/runner/formatter/progress_bar_formatter.rb