diff options
author | Mike Moore <mike@blowmage.com> | 2012-10-07 22:59:42 -0600 |
---|---|---|
committer | Mike Moore <mike@blowmage.com> | 2012-10-09 17:53:56 -0600 |
commit | 2a68f68aead9fd65ecac8062ca8efc15f5bab418 (patch) | |
tree | 632bf64b5a6974c2e47d5300ff8d15a143133af5 /railties/lib/rails/generators/test_unit/helper/helper_generator.rb | |
parent | 0787cea3bb5e6f2c216e71090732bc55ee03c7dc (diff) | |
download | rails-2a68f68aead9fd65ecac8062ca8efc15f5bab418.tar.gz rails-2a68f68aead9fd65ecac8062ca8efc15f5bab418.tar.bz2 rails-2a68f68aead9fd65ecac8062ca8efc15f5bab418.zip |
Update test locations
Change the default test locations to avoid confusion around the common
testing terms "unit" and "functional".
Add new rake tasks for the new locations, while maintaining backwards
compatibility with the old rake tasks.
New testing locations are as follows:
app/models -> test/models (was test/units)
app/helpers -> test/helpers (was test/units/helpers)
app/controllers -> test/controllers (was test/functional)
app/mailers -> test/mailers (was test/functional)
Diffstat (limited to 'railties/lib/rails/generators/test_unit/helper/helper_generator.rb')
-rw-r--r-- | railties/lib/rails/generators/test_unit/helper/helper_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/test_unit/helper/helper_generator.rb b/railties/lib/rails/generators/test_unit/helper/helper_generator.rb index 4ea80bf7be..d4c287540c 100644 --- a/railties/lib/rails/generators/test_unit/helper/helper_generator.rb +++ b/railties/lib/rails/generators/test_unit/helper/helper_generator.rb @@ -6,7 +6,7 @@ module TestUnit check_class_collision :suffix => "HelperTest" def create_helper_files - template 'helper_test.rb', File.join('test/unit/helpers', class_path, "#{file_name}_helper_test.rb") + template 'helper_test.rb', File.join('test/helpers', class_path, "#{file_name}_helper_test.rb") end end end |