Class: ZeldaFormatter
- Inherits:
-
Object
- Object
- ZeldaFormatter
- Defined in:
- lib/zelda_formatter.rb
Instance Method Summary collapse
- #dump_summary(notification) ⇒ Object
-
#initialize(output) ⇒ ZeldaFormatter
constructor
A new instance of ZeldaFormatter.
Constructor Details
#initialize(output) ⇒ ZeldaFormatter
Returns a new instance of ZeldaFormatter.
6 7 8 |
# File 'lib/zelda_formatter.rb', line 6 def initialize(output) @output = output end |
Instance Method Details
#dump_summary(notification) ⇒ Object
10 11 12 13 |
# File 'lib/zelda_formatter.rb', line 10 def dump_summary(notification) test = File.(File.dirname(__FILE__)) fork{ exec 'afplay', File.(File.dirname(__FILE__)) + '/../sound/zelda.mp3' } unless notification.failed_examples.count > 0 end |