Displaying your RSpec results in Mumbles

Posted by Will Mon, 15 Dec 2008 20:41:00 GMT

I have been very happy with my recent work using RSpec and AutoTest (ZenTest) for a project at work.  If you ever have to refactor a major piece of functionality, like the authentication, and then being able to ensure the behavior of the app is the same is very nice.  The only thing that isn’t very nice is having to switch to a console or browser window to see if everything passed or not.

Then yesterday I ran across Get your Rails tests results via Growl notifications and I thought it should be fairly simple to use Mumbles instead.  If you haven’t seen Growl it is a sexy looking popup notification app for Macs, Mumbles is a very simple replacement that runs under Linux.  It supports sending and receiving network message can talk to a Growl network.

So after jumping through a couple of hoops to get Mumbles working under Gentoo, here is what I did to get sexy popup notifications:

Create a ~/.autotest file with the following

UPDATE: I made a couple of changes to the autotest file, there was still some old cruft from the Growl autotest config that I never dealt with.

module Autotest::Mumbles
  def self.mumble title, msg
    system 'mumbles-send', title, msg
  end

  Autotest.add_hook :ran_command do |at|
    mumble "Test Results", at.results.last
  end
end

Now restart your autotest and watch for the popups! I said it was simple right?  Now I don’t have to switch to another terminal and look to see if everything passed.

That's one fast dog

Posted by Will Wed, 12 Nov 2008 17:00:00 GMT

Zoom zoom, throw the ball and watch that dog run.  Taken during our last fishing trip to Homer while we were stuck in Nenana waiting for the car to get looked at by the mechanic.

2007 Fishing Trip - Sleeping Otter

Posted by Will Wed, 12 Nov 2008 05:10:00 GMT

Otter asleep

Here is a picture from our 2007 fishing trip to Homer.  We managed to drift pretty close to this guy before I made a noise that woke him up.

Some highway scenery

Posted by Will Sat, 01 Nov 2008 08:02:00 GMT

A shot of some mountains taken during our 2008 Homer fishing trip.

New Blag

Posted by Will Wed, 08 Oct 2008 22:34:00 GMT

Giving Typo a try for my new blag, going to try and keep up with this on a semi-regular basis or at the very least try and post images once or twice a week.