diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-06-07 22:17:34 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2017-06-08 21:42:46 +0200 |
commit | 8240636beda7b2b487217be1d945eb0d36145c4d (patch) | |
tree | f24476653fdb7dd0ed43bf602d7068af1a4b0dbc /actionview/test/activerecord | |
parent | 2abf6ca0c8304a3cfcdae6e14060b561780be43c (diff) | |
download | rails-8240636beda7b2b487217be1d945eb0d36145c4d.tar.gz rails-8240636beda7b2b487217be1d945eb0d36145c4d.tar.bz2 rails-8240636beda7b2b487217be1d945eb0d36145c4d.zip |
Merge pull request https://github.com/rails/rails/pull/28637 from st0012/fix-partial-cache-logging
Diffstat (limited to 'actionview/test/activerecord')
-rw-r--r-- | actionview/test/activerecord/relation_cache_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/actionview/test/activerecord/relation_cache_test.rb b/actionview/test/activerecord/relation_cache_test.rb index 81903f3014..d12c426586 100644 --- a/actionview/test/activerecord/relation_cache_test.rb +++ b/actionview/test/activerecord/relation_cache_test.rb @@ -4,8 +4,11 @@ class RelationCacheTest < ActionView::TestCase tests ActionView::Helpers::CacheHelper def setup - @cache_hit = {} - @virtual_path = "path" + view_paths = ActionController::Base.view_paths + lookup_context = ActionView::LookupContext.new(view_paths, {}, ["test"]) + @view_renderer = ActionView::Renderer.new(lookup_context) + @virtual_path = "path" + controller.cache_store = ActiveSupport::Cache::MemoryStore.new end |