Skip to content
Browse files

r3285@asus: jeremy | 2005-11-22 13:33:04 -0800

 Apply [3162] to stable.  Model generator: correct relative path to test_helper in unit test.


git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@3172 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent cc4deb1 commit a766ae6d84afb29e3fba6514865ca68e49635246 @jeremy jeremy committed Nov 23, 2005
View
2 railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Model generator: correct relative path to test_helper in unit test. [Jeremy Kemper]
+
* Make the db_schema_dump task honor the SCHEMA environment variable if present the way db_schema_import does. #2931. [Blair Zajac]
* Make help for the console command more explicit about how to specify the desired environment in which to run the console. #2911. [anonymous]
View
2 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 %>

0 comments on commit a766ae6

Please sign in to comment.
Something went wrong with that request. Please try again.