From d58f85b75ab5693ebc1414f65125e755772b78a1 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Fri, 22 Oct 2021 16:35:10 +0200 Subject: [PATCH] Update railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt Co-authored-by: Alex Ghiculescu --- .../rails/app/templates/config/environments/test.rb.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt index 2d0a02411f..e186e37754 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt @@ -11,9 +11,9 @@ Rails.application.configure do # Turn false under Spring and add config.action_view.cache_template_loading = true config.cache_classes = true - # Do not eager load code on boot. This avoids loading your whole application - # just for the purpose of running a single test. If you are using a tool that - # preloads Rails for running tests, you may have to set it to true. + # Eager loading loads your whole application. When running a single test locally, + # this probably isn't necessary. It's a good idea to do in a continuous integration + # system, or in some way before deploying your code. config.eager_load = ENV["CI"].present? # Configure public file server for tests with Cache-Control for performance.