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

Version Path
kasket-0.8.1 test/dirty_test.rb
kasket-0.8.0 test/dirty_test.rb
kasket-0.7.8 test/dirty_test.rb
kasket-0.7.7 test/dirty_test.rb
kasket-0.7.6 test/dirty_test.rb
kasket-0.7.5 test/dirty_test.rb
kasket-0.7.4 test/dirty_test.rb
kasket-0.7.3 test/dirty_test.rb
kasket-0.7.2 test/dirty_test.rb
kasket-0.7.1 test/dirty_test.rb
kasket-0.7.0 test/dirty_test.rb
kasket-0.6.4 test/dirty_test.rb
kasket-0.6.3 test/dirty_test.rb
kasket-0.6.2 test/dirty_test.rb
kasket-0.6.1 test/dirty_test.rb
kasket-0.6.0 test/dirty_test.rb