Sha256: aa638bdceead3883316a956eb294d29820201ed216cc7be42a1785dedb6f41e7

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 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')
        end

        def example_passed(name)
          @output.print green('.')
        end
      
        def start_dump
          @output.puts
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-0.9.2 lib/spec/runner/formatter/progress_bar_formatter.rb
rspec-0.9.3 lib/spec/runner/formatter/progress_bar_formatter.rb