diff options
author | Arun Agrawal <arunagw@gmail.com> | 2015-06-05 11:07:16 +0200 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2015-06-05 11:07:16 +0200 |
commit | 382f52ddbb248cc3b5562aa033def3c33625f49a (patch) | |
tree | 7e63422a8b6dc6a0e2f66efaaa2c0784a05349f9 /railties/test/application | |
parent | abe199b3899f9326a57ba77f93aaf9bf5eabfc49 (diff) | |
download | rails-382f52ddbb248cc3b5562aa033def3c33625f49a.tar.gz rails-382f52ddbb248cc3b5562aa033def3c33625f49a.tar.bz2 rails-382f52ddbb248cc3b5562aa033def3c33625f49a.zip |
Remove warning for setting eager_load
AppTemplate::Application.new does not run load hooks.
To load this configuration we need to use create which will
run load hooks to load this configuration.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/multiple_applications_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/multiple_applications_test.rb b/railties/test/application/multiple_applications_test.rb index cddc79cc85..f2770a9cb4 100644 --- a/railties/test/application/multiple_applications_test.rb +++ b/railties/test/application/multiple_applications_test.rb @@ -118,7 +118,7 @@ module ApplicationTests assert_equal 0, run_count, "Without loading the initializers, the count should be 0" # Set config.eager_load to false so that an eager_load warning doesn't pop up - AppTemplate::Application.new { config.eager_load = false }.initialize! + AppTemplate::Application.create { config.eager_load = false }.initialize! assert_equal 3, run_count, "There should have been three initializers that incremented the count" end |