use tag name validator for artist names #3328

This commit is contained in:
r888888888
2017-10-09 16:24:09 -07:00
parent e6dc477a21
commit 4b2dcca8a2
2 changed files with 2 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ class ArtistTest < ActiveSupport::TestCase
should "should have a valid name" do
@artist = Artist.new(:name => "-blah")
@artist.save
assert_equal(["Name cannot begin with - or ~"], @artist.errors.full_messages)
assert_equal(["Name '-blah' cannot begin with a dash ('-')"], @artist.errors.full_messages)
end
context "with a matching tag alias" do