This commit is contained in:
Albert Yi
2018-07-25 11:04:50 -07:00
parent 9082ddf455
commit 77854349e5
6 changed files with 37 additions and 22 deletions

View File

@@ -168,7 +168,7 @@ class ArtistTest < ActiveSupport::TestCase
should "not allow invalid urls" do
artist = FactoryBot.create(:artist, :url_string => "blah")
assert_equal(false, artist.valid?)
assert_equal(["Url must begin with http:// or https://"], artist.errors[:url])
assert_equal(["blah must begin with http:// or https://"], artist.errors[:url])
end
should "make sure old urls are deleted" do