From 9c3d2b309ec83e223f4f565fd1412536e4a2a06d Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Fri, 28 Oct 2016 10:21:15 -0600 Subject: [PATCH] Use memory store for assets in test environment. --- config/environments/test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environments/test.rb b/config/environments/test.rb index a963c380d37..6b6b10a2eb4 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -18,6 +18,11 @@ config.public_file_server.enabled = true config.static_cache_control = "public, max-age=3600" + # Avoid potential warnings and race conditions + config.assets.configure do |env| + env.cache = ActiveSupport::Cache.lookup_store(:memory_store) + end + # Log error messages when you accidentally call methods on nil config.whiny_nils = true