test: remove alias/implication update_notice references.
Fixup for d5a7fafca.
This commit is contained in:
@@ -57,17 +57,6 @@ class TagAliasTest < ActiveSupport::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
context "#update_notice" do
|
||||
setup do
|
||||
@forum_topic = FactoryBot.create(:forum_topic)
|
||||
end
|
||||
|
||||
should "update the cache" do
|
||||
FactoryBot.create(:tag_alias, antecedent_name: "aaa", consequent_name: "bbb", skip_secondary_validations: true, forum_topic: @forum_topic)
|
||||
assert_equal(@forum_topic.id, Cache.get("tcn:aaa"))
|
||||
end
|
||||
end
|
||||
|
||||
context "#reject!" do
|
||||
should "not be blocked by validations" do
|
||||
ta1 = create(:tag_alias, antecedent_name: "kitty", consequent_name: "kitten", status: "active")
|
||||
|
||||
@@ -53,17 +53,6 @@ class TagImplicationTest < ActiveSupport::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
context "#update_notice" do
|
||||
setup do
|
||||
@forum_topic = FactoryBot.create(:forum_topic)
|
||||
end
|
||||
|
||||
should "update the cache" do
|
||||
FactoryBot.create(:tag_implication, antecedent_name: "aaa", consequent_name: "bbb", skip_secondary_validations: true, forum_topic: @forum_topic)
|
||||
assert_equal(@forum_topic.id, Cache.get("tcn:aaa"))
|
||||
end
|
||||
end
|
||||
|
||||
context "#reject!" do
|
||||
should "not be blocked by alias validations" do
|
||||
ti = create(:tag_implication, antecedent_name: "cat", consequent_name: "animal", status: "pending")
|
||||
|
||||
Reference in New Issue
Block a user