mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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.
This commit is contained in:
parent
abe199b389
commit
382f52ddbb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue