From 9b8a4484778fb55bcb2526992807a51270229b72 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Sun, 18 Feb 2018 06:35:05 +0900 Subject: Isolate each specs for cache store (#6450) The cache store is explicitly used by some specs, but they were not isolated and therefore not reliable. This fixes the issue by clearing the cache after each specs. --- config/environments/test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config') diff --git a/config/environments/test.rb b/config/environments/test.rb index e68cb156d..20fe5f813 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -23,6 +23,10 @@ Rails.application.configure do config.consider_all_requests_local = true config.action_controller.perform_caching = false + # The default store, file_store is shared by processses parallely executed + # and should not be used. + config.cache_store = :memory_store + # Raise exceptions instead of rendering exception templates. config.action_dispatch.show_exceptions = false -- cgit