Sha256: 5f01eac4aacb82ed8948b45ce36cc624ff9c2af0b275d55b863b286c2ecbdb10

Contents?: true

Size: 663 Bytes

Versions: 5

Compression:

Stored size: 663 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

5 entries across 5 versions & 1 rubygems

Version Path
rspec-1.0.3 lib/spec/runner/formatter/progress_bar_formatter.rb
rspec-1.0.4 lib/spec/runner/formatter/progress_bar_formatter.rb
rspec-1.0.0 lib/spec/runner/formatter/progress_bar_formatter.rb
rspec-1.0.1 lib/spec/runner/formatter/progress_bar_formatter.rb
rspec-1.0.2 lib/spec/runner/formatter/progress_bar_formatter.rb