specs.watchr in plucky-0.5.1 vs specs.watchr in plucky-0.5.2

- old
+ new

@@ -1,28 +1,14 @@ -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 = "" IO.popen(cmd) do |com| com.each_char do |c| print c output << c $stdout.flush end end - form_growl_message output end def run_test_file(file) run %Q(ruby -I"lib:test" -rubygems #{file}) end