X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/574231cf95960ba71273a75ccd0bf9057f574a57..fa4e0360ef6b1cb760497fbe89879cbe80128347:/config/environments/test.rb?ds=sidebyside 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