Sha256: c134db05b4d4cf2e1e78d3b88d1662eff36212dc18e54885814222b37e74fca7

Contents?: true

Size: 763 Bytes

Versions: 13

Compression:

Stored size: 763 Bytes

Contents

require 'spec/runner/formatter/base_text_formatter'

module Spec
  module Runner
    module Formatter
      class ProgressBarFormatter < BaseTextFormatter
        def example_failed(example, counter, failure)
          @output.print colorize_failure('F', failure)
          @output.flush
        end

        def example_passed(example)
          @output.print green('.')
          @output.flush
        end
      
        def example_pending(example, message, pending_caller)
          super
          @output.print yellow('*')
          @output.flush
        end
        
        def start_dump
          @output.puts
          @output.flush
        end
        
        def method_missing(sym, *args)
          # ignore
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
dchelimsky-rspec-1.1.99.1 lib/spec/runner/formatter/progress_bar_formatter.rb
dchelimsky-rspec-1.1.99.13 lib/spec/runner/formatter/progress_bar_formatter.rb
dchelimsky-rspec-1.1.99.2 lib/spec/runner/formatter/progress_bar_formatter.rb
dchelimsky-rspec-1.1.99.3 lib/spec/runner/formatter/progress_bar_formatter.rb
dchelimsky-rspec-1.1.99.4 lib/spec/runner/formatter/progress_bar_formatter.rb
dchelimsky-rspec-1.1.99.5 lib/spec/runner/formatter/progress_bar_formatter.rb
dchelimsky-rspec-1.1.99.6 lib/spec/runner/formatter/progress_bar_formatter.rb
dchelimsky-rspec-1.1.99.7 lib/spec/runner/formatter/progress_bar_formatter.rb
dchelimsky-rspec-1.1.99.8 lib/spec/runner/formatter/progress_bar_formatter.rb
dchelimsky-rspec-1.1.99.9 lib/spec/runner/formatter/progress_bar_formatter.rb
rspec-1.2.1 lib/spec/runner/formatter/progress_bar_formatter.rb
rspec-1.2.0 lib/spec/runner/formatter/progress_bar_formatter.rb
rspec-1.2.2 lib/spec/runner/formatter/progress_bar_formatter.rb