Class: ZeldaFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/zelda_formatter.rb

Instance Method Summary collapse

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.expand_path(File.dirname(__FILE__))
  fork{ exec 'afplay', File.expand_path(File.dirname(__FILE__)) + '/../sound/zelda.mp3' } unless notification.failed_examples.count > 0
end