From 8c652307a64581ad5352e997bb41fbb713d455a1 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 28 Apr 2020 00:47:39 -0500 Subject: [PATCH] test: remove alias/implication update_notice references. Fixup for d5a7fafca. --- test/unit/tag_alias_test.rb | 11 ----------- test/unit/tag_implication_test.rb | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/test/unit/tag_alias_test.rb b/test/unit/tag_alias_test.rb index 43f9d6bd9..e5d3025db 100644 --- a/test/unit/tag_alias_test.rb +++ b/test/unit/tag_alias_test.rb @@ -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") diff --git a/test/unit/tag_implication_test.rb b/test/unit/tag_implication_test.rb index d6d01693f..6dddde7a6 100644 --- a/test/unit/tag_implication_test.rb +++ b/test/unit/tag_implication_test.rb @@ -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")