Module: Autotest::Growl

Defined in:
lib/autotest/growl_images.rb

Overview

To use this autotest plugin add the following to your autotest config file (~/.autotest):

require 'autotest/growl_images'

At this moment growlnotify still has a few issues on Leopard. This means that sometimes the notification will show up and sometimes not.

Class Method Summary collapse

Class Method Details

.growl(title, msg, img, pri = 0, sticky = "") ⇒ Object



24
25
26
# File 'lib/autotest/growl_images.rb', line 24

def self.growl(title, msg, img, pri=0, sticky="")
  system "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title} #{sticky}" 
end

.images_pathObject

Override this to specify an alternative path to your pass/fail images.

def self.images_path
  File.expand_path('..', __FILE__)
end


20
21
22
# File 'lib/autotest/growl_images.rb', line 20

def self.images_path
  File.expand_path('..', __FILE__)
end