tests: fix <char>_(cosplay) alias test.

This commit is contained in:
evazion
2018-01-20 14:26:16 -06:00
parent 83ab90d495
commit e596a7fd0f

View File

@@ -787,7 +787,10 @@ class PostTest < ActiveSupport::TestCase
end
should "apply aliases when the character tag is added" do
FactoryGirl.create(:tag, name: "jim", category: Tag.categories.general)
FactoryGirl.create(:tag, name: "james", category: Tag.categories.character)
FactoryGirl.create(:tag_alias, antecedent_name: "jim", consequent_name: "james")
@post.add_tag("jim_(cosplay)")
@post.save