diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-29 18:41:10 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-29 18:41:10 +0000 |
commit | e8170805df1a32119db9d328daee1239b338ac71 (patch) | |
tree | 6776509fd30e3e955a31908577730109bbeaf8d6 /railties/lib/rails_generator/generators/components/model/templates/unit_test.rb | |
parent | 827b529459c652f21a0122090393209446567b37 (diff) | |
download | rails-e8170805df1a32119db9d328daee1239b338ac71.tar.gz rails-e8170805df1a32119db9d328daee1239b338ac71.tar.bz2 rails-e8170805df1a32119db9d328daee1239b338ac71.zip |
Generated tests rely on test dir in load path rather than File.dirname shenanigans. ruby -Itest test/unit/foo_test.rb to run a test by hand (that's a capital I as in Island).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/model/templates/unit_test.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/templates/unit_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb b/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb index 9bb3ca4160..96bd34adab 100644 --- a/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb +++ b/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb @@ -1,4 +1,4 @@ -require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper' +require 'test_helper' class <%= class_name %>Test < ActiveSupport::TestCase # Replace this with your real tests. |