aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2015-06-05 11:07:16 +0200
committerArun Agrawal <arunagw@gmail.com>2015-06-05 11:07:16 +0200
commit382f52ddbb248cc3b5562aa033def3c33625f49a (patch)
tree7e63422a8b6dc6a0e2f66efaaa2c0784a05349f9 /railties
parentabe199b3899f9326a57ba77f93aaf9bf5eabfc49 (diff)
downloadrails-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')
-rw-r--r--railties/test/application/multiple_applications_test.rb2
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