Sha256: 1e3a21cd39d0fb8435fcaee8c9544b414071e4105e36db0ae002b4fae4faf92a
Contents?: true
Size: 372 Bytes
Versions: 16
Compression:
Stored size: 372 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class DirtyTest < ActiveSupport::TestCase fixtures :blogs, :posts should "clear the indices when a dirty method is called" do post = Post.first Post.cache { pots = Post.find(post.id) } assert(Rails.cache.read(post.kasket_key)) post.make_dirty! assert_nil(Rails.cache.read(post.kasket_key)) end end
Version data entries
16 entries across 16 versions & 1 rubygems