<p>As title. </p>

<p>ruby test/functionals/whatevertest.rb doesn't work, that requires me to replace all <code>require 'test_helper'</code> to <code>require File.dirname(__FILE__) + '/../test_helper'</code>. For some reason most of those test templates have such issue, so I rather to see if there is a hack I could get around it.</p>

On Linux?  why not try
```
(cd test && ruby functionals/whatevertest.rb)
```
.  Note, the parentheses are important as otherwise your current directory will change to the subdirectory.  What it does is
```
fork
```
another shell, change to the subdirectory in it, and run the test.