aboutsummaryrefslogblamecommitdiffstats
path: root/actionview/test/activerecord/relation_cache_test.rb
blob: 8e97417b94fb042619a9897585b3559cc7cb40ce (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                               
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