Fix #4107: Can't create artist entry if tag already has a wiki #4107

This commit is contained in:
evazion
2019-08-01 19:34:21 -05:00
parent 692981e964
commit bcaefa0a7e
2 changed files with 0 additions and 20 deletions

View File

@@ -128,18 +128,6 @@ class ArtistTest < ActiveSupport::TestCase
assert_equal(artist.name, artist.wiki_page.title)
end
context "when a wiki page with the same name already exists" do
setup do
@wiki_page = FactoryBot.create(:wiki_page, :title => "aaa")
@artist = FactoryBot.build(:artist, :name => "aaa")
end
should "not validate" do
@artist.save
assert_equal(["Name conflicts with a wiki page"], @artist.errors.full_messages)
end
end
should "update the wiki page when notes are assigned" do
artist = FactoryBot.create(:artist, :name => "aaa", :notes => "testing")
artist.update_attribute(:notes, "kokoko")