diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-07 17:33:40 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-07 17:35:00 -0300 |
commit | e1404ec824d263d25717468c6f4b73ee7b2bdf4c (patch) | |
tree | 1c1e5993772def502a66300001eeeb54f95e5dba /railties/test/application | |
parent | 70c83f49f8fcefdf52c2ed22706a14e29559cea5 (diff) | |
download | rails-e1404ec824d263d25717468c6f4b73ee7b2bdf4c.tar.gz rails-e1404ec824d263d25717468c6f4b73ee7b2bdf4c.tar.bz2 rails-e1404ec824d263d25717468c6f4b73ee7b2bdf4c.zip |
Rails.application should be set inside before_configuration hook
Fixes #14620
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/multiple_applications_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/multiple_applications_test.rb b/railties/test/application/multiple_applications_test.rb index 5bfea599e0..42b319178d 100644 --- a/railties/test/application/multiple_applications_test.rb +++ b/railties/test/application/multiple_applications_test.rb @@ -21,6 +21,12 @@ module ApplicationTests assert_equal Rails.application.config.secret_key_base, clone.config.secret_key_base, "The base secret key on the config should be the same" end + def test_inheriting_multiple_times_from_application + new_application_class = Class.new(Rails::Application) + + assert_not_equal Rails.application.object_id, new_application_class.instance.object_id + end + def test_initialization_of_multiple_copies_of_same_application application1 = AppTemplate::Application.new application2 = AppTemplate::Application.new |