The generators all create tests that use
require 'test_helper'
Howegver, when you run the tests in TextMate or at the command-line via ruby test/units/foo_test.rb, the tests cannot load the file. This patch restores the original line which loads the test_helpers correctly.
require File.dirname(__FILE__) + '/../test_helper'
This addresses
.../controller/templates/functional_test.rb
.../integration_test/templates/integration_test.rb
.../components/mailer/templates/unit_test.rb
.../components/model/templates/unit_test.rb
.../components/observer/templates/unit_test.rb
.../resource/templates/functional_test.rb
.../scaffold/templates/functional_test.rb
Hopefully I got them all.