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
Comments (2) Trackbacks (0)
  1. s/Your/You’re/

  2. Ha! We wouldn’t want to give the mac a F for grammar.


Leave a comment


No trackbacks yet.