class RelationCacheTest
Public Instance Methods
setup()
click to toggle source
# File actionview/test/activerecord/relation_cache_test.rb, line 8 def setup 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
test_cache_relation_other()
click to toggle source
# File actionview/test/activerecord/relation_cache_test.rb, line 17 def test_cache_relation_other cache(Project.all) { concat("Hello World") } assert_equal "Hello World", controller.cache_store.read("views/path/projects-#{Project.count}") end
view_cache_dependencies()
click to toggle source
# File actionview/test/activerecord/relation_cache_test.rb, line 22 def view_cache_dependencies; end