From 90ebba68366223e5bd5a58f8e82c288713c21c5d Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sun, 5 Jul 2015 13:53:20 +0200 Subject: Fix the random caching test failure. --- actionpack/test/controller/caching_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/test') diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index f21dd87400..4f5af85fea 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -381,6 +381,7 @@ class AutomaticCollectionCacheTest < ActionController::TestCase @controller.perform_caching = true @controller.partial_rendered_times = 0 @controller.cache_store = ActiveSupport::Cache::MemoryStore.new + ActionView::PartialRenderer.collection_cache = @controller.cache_store end def test_collection_fetches_cached_views -- cgit v1.2.3