Class: Spec::Runner::Formatter::FailingExampleGroupsFormatter
- Inherits:
-
BaseTextFormatter
- Object
- BaseFormatter
- BaseTextFormatter
- Spec::Runner::Formatter::FailingExampleGroupsFormatter
- Defined in:
- lib/spec/runner/formatter/failing_example_groups_formatter.rb
Instance Attribute Summary
Attributes inherited from BaseTextFormatter
Instance Method Summary collapse
- #dump_failure(counter, failure) ⇒ Object
- #dump_summary(duration, example_count, failure_count, pending_count) ⇒ Object
- #example_failed(example, counter, failure) ⇒ Object
Methods inherited from BaseTextFormatter
#close, #colorize_failure, #colourise, #dump_pending, #example_group_started, #example_pending, #format_backtrace, #initialize
Methods inherited from BaseFormatter
#add_example_group, #close, #dump_pending, #example_group_started, #example_passed, #example_pending, #example_started, #initialize, #start, #start_dump
Constructor Details
This class inherits a constructor from Spec::Runner::Formatter::BaseTextFormatter
Instance Method Details
#dump_failure(counter, failure) ⇒ Object
16 17 |
# File 'lib/spec/runner/formatter/failing_example_groups_formatter.rb', line 16 def dump_failure(counter, failure) end |
#dump_summary(duration, example_count, failure_count, pending_count) ⇒ Object
19 20 |
# File 'lib/spec/runner/formatter/failing_example_groups_formatter.rb', line 19 def dump_summary(duration, example_count, failure_count, pending_count) end |
#example_failed(example, counter, failure) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/spec/runner/formatter/failing_example_groups_formatter.rb', line 7 def example_failed(example, counter, failure) if @example_group @output.puts @example_group.description.gsub(/ \(druby.*\)/,"") @output.flush @example_group = nil end end |