TJ Singleton

Software Engineer, Baptist Preacher

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:

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