Skip to content

Commit 58bab53

Browse files
committed
app:update config/environments/test.rb
1 parent f9767bd commit 58bab53

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/environments/test.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
Rails.application.configure do
99
# Settings specified here will take precedence over those in config/application.rb.
1010

11-
config.cache_classes = false
12-
config.action_view.cache_template_loading = true
11+
# Turn false under Spring and add config.action_view.cache_template_loading = true.
12+
config.cache_classes = true
1313

14-
# Do not eager load code on boot. This avoids loading your whole application
15-
# just for the purpose of running a single test. If you are using a tool that
16-
# preloads Rails for running tests, you may have to set it to true.
17-
config.eager_load = false
14+
# Eager loading loads your whole application. When running a single test locally,
15+
# this probably isn't necessary. It's a good idea to do in a continuous integration
16+
# system, or in some way before deploying your code.
17+
config.eager_load = ENV["CI"].present?
1818

1919
# Configure public file server for tests with Cache-Control for performance.
2020
config.public_file_server.enabled = true

0 commit comments

Comments
 (0)