From 83ab90d495d753763ea31066352e20f43e26c220 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 20 Jan 2018 13:59:21 -0600 Subject: [PATCH] tests: fix tag removal warning tests. --- test/unit/post_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/post_test.rb b/test/unit/post_test.rb index 2daeb06d6..4835ff6e3 100644 --- a/test/unit/post_test.rb +++ b/test/unit/post_test.rb @@ -1614,7 +1614,8 @@ class PostTest < ActiveSupport::TestCase should "warn when a tag removal failed due to implications or automatic tags" do ti = FactoryGirl.create(:tag_implication, antecedent_name: "cat", consequent_name: "animal") @post.reload - @post.update(old_tag_string: @post.tag_string, tag_string: "chen_(cosplay) chen cosplay cat animal") + @post.update(old_tag_string: @post.tag_string, tag_string: "chen_(cosplay) char:chen cosplay cat animal") + @post.warnings.clear @post.reload @post.update(old_tag_string: @post.tag_string, tag_string: "chen_(cosplay) chen cosplay cat -cosplay")