Class: RSpec::Formatter::Crisps
- Inherits:
-
Core::Formatters::BaseTextFormatter
- Object
- Core::Formatters::BaseTextFormatter
- RSpec::Formatter::Crisps
- Defined in:
- lib/crisps.rb
Instance Method Summary collapse
Instance Method Details
#example_failed(example) ⇒ Object
14 15 16 |
# File 'lib/crisps.rb', line 14 def example_failed(example) p "burnt toast - boo!" end |
#example_passed(example) ⇒ Object
10 11 12 |
# File 'lib/crisps.rb', line 10 def example_passed(example) output.print ("chocolate covered crisps - yum!").colorize(:background => :green) end |