Class: RSpec::Core::Formatters::ProgressFormatter

Inherits:
BaseTextFormatter show all
Defined in:
lib/rspec/core/formatters/progress_formatter.rb

Constant Summary

Constant Summary

Constants included from Helpers

Helpers::DEFAULT_PRECISION, Helpers::SUB_SECOND_PRECISION

Instance Attribute Summary

Attributes inherited from BaseFormatter

#duration, #example_count, #example_group, #examples, #failed_examples, #failure_count, #output, #pending_count, #pending_examples

Instance Method Summary (collapse)

Methods inherited from BaseTextFormatter

#close, #color_code_for, #colorise_summary, #colorize, const_missing, #dump_commands_to_rerun_failed_examples, #dump_failures, #dump_pending, #dump_profile, #dump_profile_slowest_example_groups, #dump_profile_slowest_examples, #dump_summary, #message, #seed, #summary_line

Methods inherited from BaseFormatter

#close, #dump_failures, #dump_pending, #dump_summary, #example_group_finished, #example_group_started, #example_started, #format_backtrace, #initialize, #message, #start, #stop

Methods included from Helpers

#format_duration, #format_seconds, #pluralize, #strip_trailing_zeroes

Methods included from BacktraceFormatter

#format_backtrace

Constructor Details

This class inherits a constructor from RSpec::Core::Formatters::BaseFormatter

Instance Method Details

- (Object) example_failed(example)

18
19
20
21
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 18
def example_failed(example)
  super(example)
  output.print failure_color('F')
end

- (Object) example_passed(example)

8
9
10
11
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 8
def example_passed(example)
  super(example)
  output.print success_color('.')
end

- (Object) example_pending(example)

13
14
15
16
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 13
def example_pending(example)
  super(example)
  output.print pending_color('*')
end

- (Object) start_dump

23
24
25
26
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 23
def start_dump
  super()
  output.puts
end