Yup ... was just about to respond.<br><br>A little more google finally turned up <a href="http://rspec.lighthouseapp.com/projects/5645/tickets/279-autotest-never-calls-the-red-hook">http://rspec.lighthouseapp.com/projects/5645/tickets/279-autotest-never-calls-the-red-hook</a><br>
<br>Thanks for the quick reply, David.<br><br><div class="gmail_quote">On Thu, Feb 28, 2008 at 3:12 PM, David Chelimsky <<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, Feb 28, 2008 at 2:59 PM, Bryan Ray <<a href="mailto:bryansray@gmail.com">bryansray@gmail.com</a>> wrote:<br>
> I'm using rSpec 1.1.3 and ZenTest 3.9.1 and every time I run a test I get<br>
> "All Tests Passed" ... perhaps I should just leave it that way? :p<br>
><br>
> Anyways, I've attempted to construct my own ~/.autotest file and it's<br>
> extremely basic, but for some reason whenever I make one test fail (on<br>
> purpose) it still kicks off the :green hook rather than the :red one ...<br>
<br>
</div>This is already fixed in trunk:<br>
<br>
svn checkout <a href="http://rspec.rubyforge.org/svn/trunk" target="_blank">http://rspec.rubyforge.org/svn/trunk</a><br>
or<br>
git clone git://gitorious.org/rspec/mainline.git<br>
<br>
If you're using git you have to clone the whole repo and copy over the plugins.<br>
<div class="Ih2E3d"><br>
><br>
> Anybody have any ideas?<br>
><br>
> # My ~/.autotest file<br>
> require 'autotest/redgreen'<br>
><br>
> module Autotest::Growl<br>
> def self.growl(title, msg, image="", priority=0, sticky="")<br>
> system "growlnotify -n autotest #{sticky} --priority #{priority}<br>
> --message '#{msg}' '#{title}'"<br>
> end<br>
><br>
> Autotest::add_hook :green do |at|<br>
> growl "Tests Passed!", "All tests passed!"<br>
> end<br>
><br>
> Autotest::add_hook :red do |at|<br>
> growl "Tests Failed!", "Tests have failed!"<br>
> end<br>
> end<br>
><br>
> --<br>
> Bryan Ray<br>
> <a href="http://www.bryanray.net" target="_blank">http://www.bryanray.net</a><br>
><br>
> "Programming today is a race between software engineers striving to build<br>
> bigger and better idiot-proof programs, and the Universe trying to produce<br>
> bigger and better idiots. So far, the Universe is winning."<br>
</div>> _______________________________________________<br>
> rspec-users mailing list<br>
> <a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>
> <a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
><br>
_______________________________________________<br>
rspec-users mailing list<br>
<a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Bryan Ray<br><a href="http://www.bryanray.net">http://www.bryanray.net</a><br><br>"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."