X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dd905b5aa893918168c644045aa1b6069e95d48e..94e61b4dbe8362d98b17976d26d0043b869886e2:/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