1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Load an application before use

Without this, `Rails.application` returns `nil`.
Ref: https://buildkite.com/rails/rails/builds/65683#e86ec58e-53a5-41be-8aeb-11c5705ee580/1042-1053
This commit is contained in:
yuuji.yaginuma 2019-12-18 18:01:02 +09:00
parent 3760cff067
commit 1555fcf32c

View file

@ -2498,6 +2498,8 @@ module ApplicationTests
config.rake_eager_load = true
RUBY
app "development"
assert_equal true, Rails.application.config.rake_eager_load
end