TJ Singleton Developer and Preacher

20Aug/092

You Failed. Autotest with a voice.

While listening to a talk from Ruby Conf 08, I heard Joe Martinez mention the say command in OS X. I figured I'd pop open my .autotest file and wire it up so it'd give me some motivation for when my specs go red.

Here is what I added:

Autotest.add_hook :red do |autotest|
  `say -v "Good News" "You're doing it wrong"`
end