dmitryame / echowaves

Social Group Chat

This URL has Read+Write access

echowaves / .autotest
100644 19 lines (17 sloc) 0.563 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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