fix tag tests
This commit is contained in:
@@ -110,11 +110,11 @@ class TagTest < ActiveSupport::TestCase
|
|||||||
should "reset its category after updating" do
|
should "reset its category after updating" do
|
||||||
tag = FactoryGirl.create(:artist_tag)
|
tag = FactoryGirl.create(:artist_tag)
|
||||||
tag.update_category_cache_for_all
|
tag.update_category_cache_for_all
|
||||||
assert_equal(Tag.categories.artist, Cache.get("tc:#{tag.name}"))
|
assert_equal(Tag.categories.artist, Cache.get("tc:#{Cache.hash(tag.name)}"))
|
||||||
|
|
||||||
tag.update_attribute(:category, Tag.categories.copyright)
|
tag.update_attribute(:category, Tag.categories.copyright)
|
||||||
tag.update_category_cache_for_all
|
tag.update_category_cache_for_all
|
||||||
assert_equal(Tag.categories.copyright, Cache.get("tc:#{tag.name}"))
|
assert_equal(Tag.categories.copyright, Cache.get("tc:#{Cache.hash(tag.name)}"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user