X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/98bfaace9aeba7fb387596cc16b2e661506173c6..95e1aff23493b3725d5259bcca7bcc79d7d3bc26:/config/environments/test.rb diff --git a/config/environments/test.rb b/config/environments/test.rb index 08d3236bf..451eecc50 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -37,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. @@ -67,4 +70,7 @@ Rails.application.configure do # Use the test adapter for ActiveJob during testing. config.active_job.queue_adapter = :test + + # Allow FactoryBot to set primary key attributes + config.factory_bot.reject_primary_key_attributes = false end