Sha256: b046f08c99f80bf627c9d56ff0c85bb4b277ec2c01d54b207639e717cce55340

Contents?: true

Size: 645 Bytes

Versions: 5

Compression:

Stored size: 645 Bytes

Contents

require 'rspec/legacy_formatters/base_text_formatter'

module RSpec
  module Core
    module Formatters
      remove_const :ProgressFormatter

      class ProgressFormatter < BaseTextFormatter
        def example_passed(example)
          super(example)
          output.print success_color('.')
        end

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

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

        def start_dump
          super()
          output.puts
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rspec-legacy_formatters-1.0.2 lib/rspec/legacy_formatters/progress_formatter.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-legacy_formatters-1.0.1/lib/rspec/legacy_formatters/progress_formatter.rb
rspec-legacy_formatters-1.0.1 lib/rspec/legacy_formatters/progress_formatter.rb
rspec-legacy_formatters-1.0.0 lib/rspec/legacy_formatters/progress_formatter.rb
rspec-legacy_formatters-1.0.0.rc1 lib/rspec/legacy_formatters/progress_formatter.rb