Class: RSpec::Core::Formatters::ProgressFormatter
- Inherits:
-
BaseTextFormatter
- Object
- BaseFormatter
- BaseTextFormatter
- RSpec::Core::Formatters::ProgressFormatter
- Defined in:
- lib/rspec/core/formatters/progress_formatter.rb
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
- #example_failed(example) ⇒ Object
- #example_passed(example) ⇒ Object
- #example_pending(example) ⇒ Object
- #start_dump ⇒ Object
Methods inherited from BaseTextFormatter
#close, #colorise_summary, #dump_commands_to_rerun_failed_examples, #dump_failures, #dump_pending, #dump_profile, #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, relative_path, #seed, #start, #stop
Methods included from Helpers
#format_seconds, #strip_trailing_zeroes
Constructor Details
This class inherits a constructor from RSpec::Core::Formatters::BaseFormatter
Instance Method Details
#example_failed(example) ⇒ Object
18 19 20 21 |
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 18 def example_failed(example) super(example) output.print red('F') end |
#example_passed(example) ⇒ Object
8 9 10 11 |
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 8 def example_passed(example) super(example) output.print green('.') end |
#example_pending(example) ⇒ Object
13 14 15 16 |
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 13 def example_pending(example) super(example) output.print yellow('*') end |
#start_dump ⇒ Object
23 24 25 26 |
# File 'lib/rspec/core/formatters/progress_formatter.rb', line 23 def start_dump super() output.puts end |