1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test/activerecord/relation_cache_test.rb
2015-08-28 17:26:09 +10:00

18 lines
456 B
Ruby

require 'active_record_unit'
class RelationCacheTest < ActionView::TestCase
tests ActionView::Helpers::CacheHelper
def setup
@virtual_path = "path"
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/projects-#{Project.count}/")
end
def view_cache_dependencies; end
end