diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-10-09 20:59:20 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-10-09 21:32:34 +0200 |
commit | 5d5eb2b18d364cb27d2062668bd3b1921b1040a8 (patch) | |
tree | 519a7e779a9e914d183c9851a63f9ef8333a5d2b /railties/test/generators/namespaced_generators_test.rb | |
parent | afd76d7fe9bb5e1b90a3b1c75abe45488e871f72 (diff) | |
download | rails-5d5eb2b18d364cb27d2062668bd3b1921b1040a8.tar.gz rails-5d5eb2b18d364cb27d2062668bd3b1921b1040a8.tar.bz2 rails-5d5eb2b18d364cb27d2062668bd3b1921b1040a8.zip |
Rename namespace method to isolate_namespace.
This change caused by confusion caused by calling engine
"namespaced". Stuff inside engine can be namespaced for every
engine. This method is not actually namespacing anything, it's
isolating engine within the given namespace.
Diffstat (limited to 'railties/test/generators/namespaced_generators_test.rb')
-rw-r--r-- | railties/test/generators/namespaced_generators_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/namespaced_generators_test.rb b/railties/test/generators/namespaced_generators_test.rb index 38b95a49ac..d1190fd17d 100644 --- a/railties/test/generators/namespaced_generators_test.rb +++ b/railties/test/generators/namespaced_generators_test.rb @@ -6,14 +6,14 @@ require 'rails/generators/mailer/mailer_generator' class NamespacedGeneratorTestCase < Rails::Generators::TestCase def setup - TestApp::Application.namespace(TestApp) + TestApp::Application.isolate_namespace(TestApp) end def teardown if TestApp.respond_to?(:_railtie) TestApp.singleton_class.send(:undef_method, :_railtie) TestApp.singleton_class.send(:undef_method, :table_name_prefix) - TestApp::Application.namespaced = false + TestApp::Application.isolated = false end end end |