X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c53db246f606e0233a524e8f3c6390ea74e96890..4d44f188e1b69d94ea9f364d85a57dcd262a93ba:/test/models/user_test.rb diff --git a/test/models/user_test.rb b/test/models/user_test.rb index 93bb348ba..f10e8c023 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -87,7 +87,9 @@ class UserTest < ActiveSupport::TestCase # should be used. bad = [ "
", "test@example.com", "s/f", "aa/", "aa;", "aa.", "aa,", "aa?", "/;.,?", "も対応します/", "#ping", - "foo\x1fbar", "foo\x7fbar", "foo\ufffebar", "foo\uffffbar" ] + "foo\x1fbar", "foo\x7fbar", "foo\ufffebar", "foo\uffffbar", + "new", "terms", "save", "confirm", "confirm-email", + "go_public", "reset-password", "forgot-password", "suspended" ] ok.each do |display_name| user = users(:normal_user) user.display_name = display_name @@ -98,7 +100,6 @@ class UserTest < ActiveSupport::TestCase user = users(:normal_user) user.display_name = display_name assert !user.valid?, "#{display_name} is valid when it shouldn't be" - assert user.errors[:display_name].include?("is invalid") end end