I’ve recently started using guard to monitor my rails application and run the appropriate tests. Guard is great, but alt-tabbing between text editor and terminal can be a bit of a time waster. To alleviate this, users of Mountain Lion can have their RSpec test status displayed using the notification centre, in a similar fashion that Growl used to. This means you get regular feedback while still having focus on the text editor (and it even works in full screen mode!)
To get it working, add the ‘terminal-notifier-guard’ gem to the development group in your Gemfile.
After that, install the gem in your project using:
The next time you fire up guard you should see something simlar to the following which lets you know that TerminalNotifier is sending notifications.
This should be the end result - short and sweet RSpec notifications.