I got tired of typing these all the time to run one test in our suite:
$ rake test TEST=test/unit/some_test.rb
$ rake test TEST=test/integration/some_integration_test.rb
Instead, I wanted to be able to do:
$ rtu s (tab complete to some_test.rb or other matching files in test/unit/)
$ rti s (tab complete to some_integration_test.rb or other matching files in test/integration/)
and have them run the same thing as the first set of commands. The following scripts let you do just that!
This guide was awesome in figuring out how to configure the filename completion: http://devmanual.gentoo.org/tasks-reference/completion/index.html