From: Tom Hughes Date: Sun, 21 Apr 2024 18:03:07 +0000 (+0100) Subject: Order configuration consistently in test and production environments X-Git-Tag: live~560 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/29bd8c54efc18a087ae0cb6506a4428767af742b Order configuration consistently in test and production environments --- diff --git a/config/environments/test.rb b/config/environments/test.rb index 506ccf643..451eecc50 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -11,9 +11,6 @@ Rails.application.configure do # While tests run files are not watched, reloading is not necessary. config.enable_reloading = false - # disable logging in tests, for speed increases. Set to :info to bring back logging - config.log_level = :warn - # Eager loading loads your entire application. When running a single test locally, # this is usually not necessary, and can slow down your test suite. However, it's # recommended that you enable it in continuous integration systems to ensure eager @@ -40,6 +37,9 @@ Rails.application.configure do # Store uploaded files on the local file system in a temporary directory. config.active_storage.service = :test + # Disable logging in tests, for speed increases. Set to :info to bring back logging + config.log_level = :warn + config.action_mailer.perform_caching = false # Tell Action Mailer not to deliver emails to the real world.