This commit is contained in:
albert
2013-03-09 01:56:59 -05:00
parent 6a2f69f2fc
commit 1da9e24bd0
3 changed files with 14 additions and 1 deletions

View File

@@ -373,6 +373,12 @@ class PostTest < ActiveSupport::TestCase
should "update the category cache of the tag" do
assert_equal(Tag.categories.copyright, Cache.get("tc:abc"))
end
should "update the tag counts of the posts" do
assert_equal(0, @post.tag_count_artist)
assert_equal(1, @post.tag_count_copyright)
assert_equal(0, @post.tag_count_general)
end
end
context "tagged with a metatag" do