Skip to content

Commit

Permalink
Removing growl from watchr.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Dec 30, 2010
1 parent 08d6fef commit 9031240
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions specs.watchr
@@ -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)
puts(cmd)
output = ""
Expand All @@ -21,7 +8,7 @@ def run(cmd)
$stdout.flush
end
end
form_growl_message output
output
end

def run_test_file(file)
Expand Down

0 comments on commit 9031240

Please sign in to comment.