Fix tag alias test failures.

This commit is contained in:
evazion
2017-11-15 16:58:58 -06:00
parent e5cc6a7949
commit 12640a6766

View File

@@ -66,11 +66,11 @@ class TagAliasTest < ActiveSupport::TestCase
tag1 = FactoryGirl.create(:tag, :name => "aaa")
tag2 = FactoryGirl.create(:tag, :name => "bbb")
ta = FactoryGirl.create(:tag_alias, :antecedent_name => "aaa", :consequent_name => "bbb")
assert_nil(Cache.get("ta:aaa"))
assert_nil(Cache.get("ta:#{Cache.hash("aaa")}"))
TagAlias.to_aliased(["aaa"])
assert_equal("bbb", Cache.get("ta:aaa"))
assert_equal("bbb", Cache.get("ta:#{Cache.hash("aaa")}"))
ta.destroy
assert_nil(Cache.get("ta:aaa"))
assert_nil(Cache.get("ta:#{Cache.hash("aaa")}"))
end
should "move saved searches" do