Class: Bdd::RSpec::Formatter
- Inherits:
-
RSpec::Core::Formatters::DocumentationFormatter
- Object
- RSpec::Core::Formatters::DocumentationFormatter
- Bdd::RSpec::Formatter
- Defined in:
- lib/bdd/rspec/formatter.rb
Instance Method Summary collapse
- #example_failed(failure) ⇒ Object
- #example_passed(passed) ⇒ Object
- #example_pending(pending) ⇒ Object
- #example_started(notification) ⇒ Object
Instance Method Details
#example_failed(failure) ⇒ Object
25 26 27 28 |
# File 'lib/bdd/rspec/formatter.rb', line 25 def example_failed(failure) super output.puts read_steps(failure.example, :red) end |
#example_passed(passed) ⇒ Object
15 16 17 18 |
# File 'lib/bdd/rspec/formatter.rb', line 15 def example_passed(passed) super output.puts read_steps(passed.example) end |
#example_pending(pending) ⇒ Object
20 21 22 23 |
# File 'lib/bdd/rspec/formatter.rb', line 20 def example_pending(pending) super output.puts read_steps(pending.example, :yellow) end |
#example_started(notification) ⇒ Object
11 12 13 |
# File 'lib/bdd/rspec/formatter.rb', line 11 def example_started(notification) notification.example.[:step_messages] = [] end |