diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-11-03 20:12:08 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-03 20:48:40 +0100 |
commit | d0d30e767d7e9a61ec1d8b8d44894f0ab508b990 (patch) | |
tree | a870bd1a837954c5f74f387b28890f819ef1a994 /railties/lib/rails/generators/test_unit | |
parent | cbe391b517f55caad8cbefa6f864289d76fab653 (diff) | |
download | rails-d0d30e767d7e9a61ec1d8b8d44894f0ab508b990.tar.gz rails-d0d30e767d7e9a61ec1d8b8d44894f0ab508b990.tar.bz2 rails-d0d30e767d7e9a61ec1d8b8d44894f0ab508b990.zip |
Fix scaffold generator to be aware of namespace in isolated engine
Diffstat (limited to 'railties/lib/rails/generators/test_unit')
-rw-r--r-- | railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb b/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb index f23e495450..964d59d84c 100644 --- a/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +++ b/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb @@ -1,5 +1,6 @@ require 'test_helper' +<% module_namespacing do -%> class <%= controller_class_name %>ControllerTest < ActionController::TestCase setup do @<%= singular_table_name %> = <%= table_name %>(:one) @@ -47,3 +48,4 @@ class <%= controller_class_name %>ControllerTest < ActionController::TestCase assert_redirected_to <%= index_helper %>_path end end +<% end -%> |