X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3d55db46ed24d563d82cf42f91fd064e40447c4d..b52e5ef1cf8caa53d710c298952fd626adc1b51e:/test/unit/user_test.rb?ds=inline 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