Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Thanks to autotest-mac, I don't need all that custom AutoTest Growl s…

…tuff anymore
  • Loading branch information...
commit 27ab069e438b283a7dd1f8ce1918ae37740f1081 1 parent 8e3d25b
@enricob authored
Showing with 0 additions and 23 deletions.
  1. +0 −23 .autotest
View
23 .autotest
@@ -1,23 +0,0 @@
-require 'autotest/redgreen'
-
-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 :initialize do |at|
- %w{.svn .hg .git vendor}.each {|exception| at.add_exception(exception)}
- end
-
- Autotest.add_hook :ran_command do |autotest|
- results = [autotest.results].flatten.join("\n")
- output = results.slice(/(\d+)\s+examples?,\s*(\d+)\s+failures?(,\s*(\d+)\s+pending)?/)
- if output =~ /[1-9]\sfailures?/
- growl "Specs Failed:", "#{output}", "~/Library/autotest/rails_fail.png", 2, "-s"
- elsif output =~ /[1-9]\spending?/
- growl "Specs Pending:", "#{output}", "~/Library/autotest/rails_pending.png", 2, "-s"
- else
- growl "Specs Passed:", "#{output}", "~/Library/autotest/rails_ok.png"
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.