From babbde5d6f6d3b3724ae71550ae7814d47f16ed0 Mon Sep 17 00:00:00 2001 From: Josh Thompson Date: Thu, 18 Apr 2024 16:17:19 -0600 Subject: [PATCH] Turn off logging in test for small speed increase --- config/environments/test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/environments/test.rb b/config/environments/test.rb index 0b2f57fba7c..10410c5d6ca 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -77,6 +77,9 @@ Rails.application.configure do # Raise error when a before_action's only/except options reference missing actions config.action_controller.raise_on_missing_callback_actions = true + + # disable logging in tests, for speed increases. Set to :info to bring back logging + config.log_level = :warn end Paperclip::Attachment.default_options[:path] = Rails.root.join('spec', 'test_files', ':class', ':id_partition', ':style.:extension')