X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9568c7fee85a615830ba78639b2ee8440da60668..2312dd902e96786649ad9289c425a22ec73fbd80:/test/models/user_test.rb?ds=sidebyside diff --git a/test/models/user_test.rb b/test/models/user_test.rb index de318df20..c34b4b81f 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -52,7 +52,7 @@ class UserTest < ActiveSupport::TestCase ok.each do |name| user = build(:user) user.email = name - assert user.valid?(:save), user.errors.full_messages.join(",") + assert user.valid?(:save), "#{name} isn't valid when it should be" end bad.each do |name| @@ -76,7 +76,7 @@ class UserTest < ActiveSupport::TestCase def test_display_name_valid # Due to sanitisation in the view some of these that you might not - # expact are allowed + # expect are allowed # However, would they affect the xml planet dumps? ok = ["Name", "'me", "he\"", "