aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2010-10-28 20:25:20 +0200
committerPiotr Sarnacki <drogus@gmail.com>2010-11-02 17:14:52 +0100
commita5311ee86bffad3f0bce00babd1ff5d78ec85618 (patch)
treeec8c04d706fa778454bfe9d8e7e0d7b70ddc77a7 /railties/test
parent5071b727b438f1ca6be502c906f5af751abb0229 (diff)
downloadrails-a5311ee86bffad3f0bce00babd1ff5d78ec85618.tar.gz
rails-a5311ee86bffad3f0bce00babd1ff5d78ec85618.tar.bz2
rails-a5311ee86bffad3f0bce00babd1ff5d78ec85618.zip
Make deep copy of application generators on engine initialization.
Otherwise nested hashes will be same objects for both application and engine, which will result in overwriting each others values on changes.
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/railties/engine_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb
index 3509f964eb..822be24ef1 100644
--- a/railties/test/railties/engine_test.rb
+++ b/railties/test/railties/engine_test.rb
@@ -701,6 +701,9 @@ module RailtiesTest
generators = Bukkits::Engine.config.generators.options[:rails]
assert_equal :active_record, generators[:orm]
assert_equal :rspec , generators[:test_framework]
+
+ app_generators = Rails.application.config.generators.options[:rails]
+ assert_equal :test_unit , app_generators[:test_framework]
end
end
end