aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@github.com>2019-02-19 13:45:30 -0800
committerGitHub <noreply@github.com>2019-02-19 13:45:30 -0800
commitff6b713f5e729859995f204093ad3f8e08f39ea8 (patch)
tree2729530ac520a01230e9a632fde5d549e140a5e7 /actionview/test/activerecord
parent16a8072e2db29d5ec895830dca995f99ce1915d6 (diff)
parentdf12a1b2413906ee38a977e3cbb325512c184837 (diff)
downloadrails-ff6b713f5e729859995f204093ad3f8e08f39ea8.tar.gz
rails-ff6b713f5e729859995f204093ad3f8e08f39ea8.tar.bz2
rails-ff6b713f5e729859995f204093ad3f8e08f39ea8.zip
Merge pull request #35293 from rails/remove-rendered-format-from-cache
Pass the template format to the digestor
Diffstat (limited to 'actionview/test/activerecord')
-rw-r--r--actionview/test/activerecord/relation_cache_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionview/test/activerecord/relation_cache_test.rb b/actionview/test/activerecord/relation_cache_test.rb
index a6befc3ee5..6fe83dcb9a 100644
--- a/actionview/test/activerecord/relation_cache_test.rb
+++ b/actionview/test/activerecord/relation_cache_test.rb
@@ -11,13 +11,14 @@ class RelationCacheTest < ActionView::TestCase
lookup_context = ActionView::LookupContext.new(view_paths, {}, ["test"])
@view_renderer = ActionView::Renderer.new(lookup_context)
@virtual_path = "path"
+ @current_template = lookup_context.find "test/hello_world"
controller.cache_store = ActiveSupport::Cache::MemoryStore.new
end
def test_cache_relation_other
cache(Project.all) { concat("Hello World") }
- assert_equal "Hello World", controller.cache_store.read("views/path/projects-#{Project.count}")
+ assert_equal "Hello World", controller.cache_store.read("views/test/hello_world:fa9482a68ce25bf7589b8eddad72f736/projects-#{Project.count}")
end
def view_cache_dependencies; []; end