aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/railties/engine_test.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb
index 6f762d2d3f..247c78db27 100644
--- a/railties/test/railties/engine_test.rb
+++ b/railties/test/railties/engine_test.rb
@@ -882,7 +882,15 @@ YAML
end
RUBY
- add_to_config "isolate_namespace AppTemplate"
+ @plugin.write "lib/new_lugin.rb", <<-RUBY
+ module AppTemplate
+ module NewPlugin
+ class Engine < ::Rails::Engine
+ isolate_namespace(AppTemplate)
+ end
+ end
+ end
+ RUBY
app_file "config/routes.rb", <<-RUBY
Rails.application.routes.draw do end