class Minitest::Growler
Constants
- VERSION
Public Class Methods
growler!()
click to toggle source
# File lib/minitest/growler_plugin.rb, line 18 def self.growler! @growler = true end
growler?()
click to toggle source
# File lib/minitest/growler_plugin.rb, line 22 def self.growler? @growler ||= false end
new(options)
click to toggle source
Calls superclass method
# File lib/minitest/growler_plugin.rb, line 26 def initialize(options) super end
Public Instance Methods
image_path(type)
click to toggle source
# File lib/minitest/growler_plugin.rb, line 44 def image_path(type) File.join(File.expand_path(File.dirname(__FILE__)), 'images', "#{type}.png") end
notify(message, image_type)
click to toggle source
# File lib/minitest/growler_plugin.rb, line 40 def notify(message, image_type) Growl.notify(message, :image => image_path(image_type)) end
report()
click to toggle source
Calls superclass method
# File lib/minitest/growler_plugin.rb, line 30 def report super if failures.to_i > 0 || errors.to_i > 0 notify("Tests Failed! (#{failures.to_i} failures, #{errors.to_i} errors)", :failure) else notify("Tests Passed! (#{assertions.to_i} assertions)", :success) end end