Class: Spec::Runner::Formatter::FailingExamplesFormatter

Inherits:
BaseTextFormatter show all
Defined in:
lib/spec/runner/formatter/failing_examples_formatter.rb

Instance Attribute Summary

Attributes inherited from BaseTextFormatter

#dry_run

Instance Method Summary collapse

Methods inherited from BaseTextFormatter

#close, #colour=, #colourise, #dump_pending, #example_pending, #format_backtrace, #initialize

Methods inherited from BaseFormatter

#close, #dump_pending, #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

#add_behaviour(behaviour_name) ⇒ Object



5
6
7
# File 'lib/spec/runner/formatter/failing_examples_formatter.rb', line 5

def add_behaviour(behaviour_name)
  @behaviour_name = behaviour_name
end

#dump_failure(counter, failure) ⇒ Object



14
15
# File 'lib/spec/runner/formatter/failing_examples_formatter.rb', line 14

def dump_failure(counter, failure)
end

#dump_summary(duration, example_count, failure_count, pending_count) ⇒ Object



17
18
# File 'lib/spec/runner/formatter/failing_examples_formatter.rb', line 17

def dump_summary(duration, example_count, failure_count, pending_count)
end

#example_failed(example, counter, failure) ⇒ Object



9
10
11
12
# File 'lib/spec/runner/formatter/failing_examples_formatter.rb', line 9

def example_failed(example, counter, failure)
  @output.puts "#{@behaviour_name} #{example.description}"
  @output.flush
end