Class: SnowyOwl::StatusFormatter
- Inherits:
-
Object
- Object
- SnowyOwl::StatusFormatter
- Defined in:
- lib/snowy_owl/rspec.rb
Instance Method Summary collapse
- #example_failed(notification) ⇒ Object
-
#initialize(out) ⇒ StatusFormatter
constructor
A new instance of StatusFormatter.
Constructor Details
#initialize(out) ⇒ StatusFormatter
Returns a new instance of StatusFormatter.
58 59 60 |
# File 'lib/snowy_owl/rspec.rb', line 58 def initialize(out) @out = out end |
Instance Method Details
#example_failed(notification) ⇒ Object
62 63 64 65 66 |
# File 'lib/snowy_owl/rspec.rb', line 62 def example_failed(notification) example = notification.example @out.puts "\nplot name: #{example.description}" @out.puts "plot digest: #{example.[:digest]}" end |