Sometimes you shouldn’t call ruby directly, per HowtoRunOneTest. RubyOnRails, for example, batches test cases with rake, which has its own set of command-line arguments.
This rig allows you to pass commands to the test runner using TESTOPTS:
<pre>
rake test TESTOPTS=-ntest_my_favorite_case
</pre>