X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f37ea2fae3bd7330d42ca257baf175dd811b2ac6..dd7754117bb913f0b916b04107b3dc3af9bb7e6c:/config/environments/test.rb diff --git a/config/environments/test.rb b/config/environments/test.rb index 08d3236bf..506ccf643 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -11,6 +11,9 @@ 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 @@ -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