Skip to content

Commit

Permalink
Remove growl crap
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Sep 12, 2012
1 parent 8cf29ce commit 6909939
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions specs.watchr
Original file line number Original file line Diff line number Diff line change
@@ -1,16 +1,3 @@
def growl(title, msg, img)
%x{growlnotify -m #{ msg.inspect} -t #{title.inspect} --image ~/.watchr/#{img}.png}
end

def form_growl_message(str)
results = str.split("\n").last
if results =~ /[1-9]\s(failure|error)s?/
growl "Test Results", "#{results}", "fail"
elsif results != ""
growl "Test Results", "#{results}", "pass"
end
end

def run(cmd) def run(cmd)
puts(cmd) puts(cmd)
output = "" output = ""
Expand All @@ -21,7 +8,6 @@ def run(cmd)
$stdout.flush $stdout.flush
end end
end end
form_growl_message output
end end


def run_test_file(file) def run_test_file(file)
Expand Down

0 comments on commit 6909939

Please sign in to comment.