From 382f52ddbb248cc3b5562aa033def3c33625f49a Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Fri, 5 Jun 2015 11:07:16 +0200 Subject: 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. --- railties/test/application/multiple_applications_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3