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:
commit
3046c9bbe1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue