X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3d55db46ed24d563d82cf42f91fd064e40447c4d..e756dbae7f3715561de5688e6503b60fdfe0327d:/test/unit/user_test.rb?ds=sidebyside diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index e537a8433..843c31905 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -48,13 +48,13 @@ class UserTest < ActiveSupport::TestCase ok.each do |name| user = users(:normal_user) user.email = name - assert user.valid?, user.errors.full_messages + assert user.valid?(:save), user.errors.full_messages end bad.each do |name| user = users(:normal_user) user.email = name - assert !user.valid?, "#{name} is valid when it shouldn't be" + assert user.invalid?(:save), "#{name} is valid when it shouldn't be" end end