tests: fix tag removal warning tests.

This commit is contained in:
evazion
2018-01-20 13:59:21 -06:00
parent 2deefcc090
commit 83ab90d495

View File

@@ -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")