Sha256: 6d96747760cabf98fa2492078965da97fbd82c61d9f8662c17d2e4c21e7c8713
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
# -*- encoding : utf-8 -*- require 'active_record/test_helper' class ActiveRecord::SecondLevelCacheTest < Test::Unit::TestCase def setup @user = User.create :name => 'csdn', :email => 'test@csdn.com' end def test_should_get_cache_key assert_equal "slc/user/#{@user.id}", @user.second_level_cache_key end def test_should_write_and_read_cache assert_not_nil User.read_second_level_cache(@user.id) @user.expire_second_level_cache assert_nil User.read_second_level_cache(@user.id) @user.write_second_level_cache assert_not_nil User.read_second_level_cache(@user.id) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
second_level_cache-1.3.2 | test/active_record/second_level_cache_test.rb |