fix tag tests

This commit is contained in:
r888888888
2017-10-09 16:17:12 -07:00
parent 2c56a19dec
commit e6dc477a21

View File

@@ -110,11 +110,11 @@ class TagTest < ActiveSupport::TestCase
should "reset its category after updating" do
tag = FactoryGirl.create(:artist_tag)
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_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