X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/12c1d5e6c05813a0697724277b4d8529a1a7c240..bc8ce5729da0a7df4306ae5f785f68980a9bf47b:/test/models/client_application_test.rb diff --git a/test/models/client_application_test.rb b/test/models/client_application_test.rb index c3f1df23c..9dc5ab5fc 100644 --- a/test/models/client_application_test.rb +++ b/test/models/client_application_test.rb @@ -14,7 +14,7 @@ class ClientApplicationTest < ActiveSupport::TestCase bad.each do |url| app = build(:client_application) app.url = url - assert_not app.valid?, "#{url} is valid when it shouldn't be" + assert_not_predicate app, :valid?, "#{url} is valid when it shouldn't be" end end @@ -31,7 +31,7 @@ class ClientApplicationTest < ActiveSupport::TestCase bad.each do |url| app = build(:client_application) app.support_url = url - assert_not app.valid?, "#{url} is valid when it shouldn't be" + assert_not_predicate app, :valid?, "#{url} is valid when it shouldn't be" end end @@ -48,7 +48,7 @@ class ClientApplicationTest < ActiveSupport::TestCase bad.each do |url| app = build(:client_application) app.callback_url = url - assert_not app.valid?, "#{url} is valid when it shouldn't be" + assert_not_predicate app, :valid?, "#{url} is valid when it shouldn't be" end end end