diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-22 21:33:56 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-22 21:33:56 +0000 |
commit | 3e51cd8b8e4a9d9c9e7520bde091479067b56acf (patch) | |
tree | 9f75cd750ed6a27542565775f4b0c081d45d13ed /railties/lib/rails_generator/generators/components/model/templates/unit_test.rb | |
parent | 1b3c9a0a56771d894d8d32500eb8f878728bd630 (diff) | |
download | rails-3e51cd8b8e4a9d9c9e7520bde091479067b56acf.tar.gz rails-3e51cd8b8e4a9d9c9e7520bde091479067b56acf.tar.bz2 rails-3e51cd8b8e4a9d9c9e7520bde091479067b56acf.zip |
Model generator: correct relative path to test_helper in unit test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3162 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 852b5d2529..1c19cde769 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__) + '/../test_helper' +require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper' class <%= class_name %>Test < Test::Unit::TestCase fixtures :<%= table_name %> |