tests: fix *_(cosplay) tagging test (fixup for 51b08d224).

This commit is contained in:
evazion
2018-12-26 20:16:59 -06:00
parent 719f556dd5
commit 3c9b26c247

View File

@@ -764,6 +764,8 @@ class PostTest < ActiveSupport::TestCase
end
should "apply implications after the character tag is added" do
FactoryBot.create(:tag, name: "jimmy", category: Tag.categories.character)
FactoryBot.create(:tag, name: "jim", category: Tag.categories.character)
FactoryBot.create(:tag_implication, antecedent_name: "jimmy", consequent_name: "jim")
@post.add_tag("jimmy_(cosplay)")
@post.save