Sha256: 39ed51062874ba74df8eaf6d7e0d4f2b5ee95872db7d99ccdcf25a8237c51dbd

Contents?: true

Size: 1.22 KB

Versions: 6

Compression:

Stored size: 1.22 KB

Contents

class OldStyleFormatterExample

  def initialize(output)
    @output = output
  end

  def start(example_count)
    @output.puts "Started #{example_count.to_s} examples"
  end

  def example_group_started(group)
    @output.puts "Started #{group.description}"
  end

  def example_group_finished(group)
    @output.puts "Finished #{group.description}"
  end

  def example_started(example)
    @output.puts "Started #{example.full_description}"
  end

  def stop
    @output.puts "Stopped"
  end

  def message(message)
    @output.puts message
  end

  def dump_failures
    @output.puts "Failures:"
  end

  def dump_summary(duration, example_count, failure_count, pending_count)
    @output.puts "\nFinished in #{duration}\n" +
                 "#{failure_count}/#{example_count} failed.\n" +
                 "#{pending_count} pending."
  end

  def dump_pending
    @output.puts "Pending:"
  end

  def seed(number)
    @output.puts "Randomized with seed #{number}"
  end

  def close
    @output.close
  end

  def example_passed(example)
    @output.print '.'
  end

  def example_pending(example)
    @output.print 'P'
  end

  def example_failed(example)
    @output.print 'F'
  end

  def start_dump
    @output.puts "Dumping!"
  end

end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
rspec-legacy_formatters-1.0.2 spec/support/old_style_formatter_example.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-legacy_formatters-1.0.1/spec/support/old_style_formatter_example.rb
rspec-legacy_formatters-1.0.1 spec/support/old_style_formatter_example.rb
rspec-legacy_formatters-1.0.0 spec/support/old_style_formatter_example.rb
rspec-legacy_formatters-1.0.0.rc1 spec/support/old_style_formatter_example.rb
rspec-core-3.0.0.beta2 spec/support/old_style_formatter_example.rb