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:
parent
3760cff067
commit
1555fcf32c
1 changed files with 2 additions and 0 deletions
|
@ -2498,6 +2498,8 @@ module ApplicationTests
|
||||||
config.rake_eager_load = true
|
config.rake_eager_load = true
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
|
app "development"
|
||||||
|
|
||||||
assert_equal true, Rails.application.config.rake_eager_load
|
assert_equal true, Rails.application.config.rake_eager_load
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue