fix post count cache expiration across servers

This commit is contained in:
albert
2013-03-11 18:50:23 -04:00
parent 978e6ccaea
commit a6ed8bcaf1
2 changed files with 19 additions and 12 deletions

View File

@@ -6,6 +6,7 @@ class PostTest < ActiveSupport::TestCase
CurrentUser.user = @user
CurrentUser.ip_addr = "127.0.0.1"
MEMCACHE.flush_all
Delayed::Worker.delay_jobs = false
end
teardown do
@@ -360,6 +361,7 @@ class PostTest < ActiveSupport::TestCase
@post.update_attribute(:tag_string, "art:abc")
@post = Post.find(@post.id)
@post.update_attribute(:tag_string, "copy:abc")
@post.reload
end
teardown do