From 9062b25e82a347e117ae091dd18a01ecf96856a7 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 27 Jul 2020 18:06:09 +0100 Subject: [PATCH] Update test.rb --- spec/dummy/config/environments/test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/dummy/config/environments/test.rb b/spec/dummy/config/environments/test.rb index 735dc56484..63c39c0fbc 100644 --- a/spec/dummy/config/environments/test.rb +++ b/spec/dummy/config/environments/test.rb @@ -21,14 +21,21 @@ # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false + config.cache_store = :null_store # Raise exceptions instead of rendering exception templates. config.action_dispatch.show_exceptions = false + # Use a higher log level to avoid unnecessary clutter and disk IO. + config.log_level = :warn + # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false config.action_mailer.perform_caching = false + # Immediately discard cache in tests + config.cache_store = :null_store + # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array.