Sha256: acc0649dda5adfbdc555d5b9350562320113bba90d826e46cbcbffcbde3a1d49

Contents?: true

Size: 582 Bytes

Versions: 195

Compression:

Stored size: 582 Bytes

Contents

require 'rspec/core/formatters/base_text_formatter'
module RSpec
  module Core
    module Formatters

      class ProgressFormatter < BaseTextFormatter

        def example_passed(example)
          super(example)
          output.print green('.')
        end

        def example_pending(example)
          super(example)
          output.print yellow('*')
        end

        def example_failed(example)
          super(example)
          output.print red('F')
        end

        def start_dump
          super()
          output.puts
        end

      end

    end
  end
end

Version data entries

195 entries across 140 versions & 18 rubygems

Version Path
rspec-core-2.1.0 lib/rspec/core/formatters/progress_formatter.rb
rspec-core-2.0.1 lib/rspec/core/formatters/progress_formatter.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.1.1 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/lib/rspec/core/formatters/progress_formatter.rb
rspec-core-2.0.0 lib/rspec/core/formatters/progress_formatter.rb
rspec-core-2.0.0.rc lib/rspec/core/formatters/progress_formatter.rb