Sha256: 5dc60dc57ad1a35593de059f887d7eb632f2f2b01141ac35a1fcdab04563962c

Contents?: true

Size: 809 Bytes

Versions: 8

Compression:

Stored size: 809 Bytes

Contents

RSpec::Support.require_rspec_core 'formatters/base_text_formatter'

class SimpleFormatter < RSpec::Core::Formatters::BaseTextFormatter
  RSpec::Core::Formatters.register self,
    :example_passed, :example_pending, :example_failed, :dump_pending, :dump_failures, :dump_summary

  def example_passed(message)
    # Do nothing
  end

  def example_pending(message)
    # Do nothing
  end

  def example_failed(message)
    # Do nothing
  end

  def dump_pending(message)
    # Do nothing
  end

  def dump_failures(message)
  end

  def dump_summary(message)
    colorizer = ::RSpec::Core::Formatters::ConsoleCodes

    output.puts "\nFinished in #{message.formatted_duration} " \
       "(files took #{message.formatted_load_time} to load)\n" \
       "#{message.colorized_totals_line(colorizer)}\n"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
daru-0.3 .rspec_formatter.rb
daru-0.2.2 .rspec_formatter.rb
daru-0.2.1 .rspec_formatter.rb
daru-0.2.0 .rspec_formatter.rb
daru-0.1.6 .rspec_formatter.rb
daru-0.1.5 .rspec_formatter.rb
daru-0.1.4.1 .rspec_formatter.rb
daru-0.1.4 .rspec_formatter.rb