fix post count cache expiration across servers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user