X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d3700e6201b4b78a70bbb2941572edc985b63c2c..44217775f0f8556c662aa9b39aeed80c97c7f8ed:/test/models/user_test.rb diff --git a/test/models/user_test.rb b/test/models/user_test.rb index 168b9c3fa..0e618cd22 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -67,7 +67,7 @@ class UserTest < ActiveSupport::TestCase user.display_name = "123" assert user.valid?, " should allow nil display name" user.display_name = "12" - assert !user.valid?, "should not allow 2 char name" + assert_not user.valid?, "should not allow 2 char name" user.display_name = "" assert_not user.valid? user.display_name = nil @@ -99,7 +99,7 @@ class UserTest < ActiveSupport::TestCase bad.each do |display_name| user = build(:user) user.display_name = display_name - assert !user.valid?, "#{display_name} is valid when it shouldn't be" + assert_not user.valid?, "#{display_name} is valid when it shouldn't be" end end