1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #20782 from kaspth/fix-controller-caching-test

Fix the random caching test failure. (Take two)
This commit is contained in:
Matthew Draper 2015-07-06 05:24:50 +09:30
commit 3046c9bbe1

View file

@ -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