Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (17 sloc) 0.563 kb
#require 'autotest/timestamp'
#require 'redgreen/autotest'
#
#module Autotest::Growl
# def self.growl title, msg, img, pri=0, stick=""
# system "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title} #{stick}"
# end
#
# Autotest.add_hook :ran_command do |at|
# output = at.results.last.slice(/(\d+).*errors/)
# if output =~ /ns.*[1-9]/
# growl "Test Results", "#{output}", './public/images/rails_fail.png', 2 #, "-s"
# else
# growl "Test Results", "#{output}", './public/images/rails_ok.png'
# end
# end
#end
Jump to Line
Something went wrong with that request. Please try again.