Ruby on Rails & Textmate

While we're on the subject of Rails and Textmate, does anyone have a bundle recipe to trigger a 'rake test' without having to pick 'test' from the menu of allowed tasks? Really I'd like to be able to hit a single keyboard shortcut and have it happen.

Failing that I'll eventually get around to writing my own, but why debug the newly reinvented wheel.

-faisal

Faisal N Jawdat wrote:

While we're on the subject of Rails and Textmate, does anyone have a bundle recipe to trigger a 'rake test' without having to pick 'test' from the menu of allowed tasks? Really I'd like to be able to hit a single keyboard shortcut and have it happen.

We did this trick:

- declare a keystroke, F5, that does nothing
- set the keystroke to "save all files" first
- run trigger.rb in a shell next to the editor (on another monitor)
- trigger.rb detects when any file gets saved
- the trigger doesn't run test:recent. It uses test:svn_modified

http://groups.google.com/group/rubyonrails-talk/msg/91d25ae319db21b2

Failing that I'll eventually get around to writing my own, but why debug the newly reinvented wheel.

Ask, and ye shall be blogged!

http://phlip.eblogs.com/2007/01/02/growl-driven-development/