X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3666b674330ec8d14a224932a191d6121c5974e2..68ff443697b2755df7f83929c10638a1ce3bcdfb:/test/models/client_application_test.rb?ds=sidebyside diff --git a/test/models/client_application_test.rb b/test/models/client_application_test.rb index c0b7b7977..c3f1df23c 100644 --- a/test/models/client_application_test.rb +++ b/test/models/client_application_test.rb @@ -8,7 +8,7 @@ class ClientApplicationTest < ActiveSupport::TestCase ok.each do |url| app = build(:client_application) app.url = url - assert app.valid?, "#{url} is invalid, when it should be" + assert_predicate app, :valid?, "#{url} is invalid, when it should be" end bad.each do |url| @@ -25,7 +25,7 @@ class ClientApplicationTest < ActiveSupport::TestCase ok.each do |url| app = build(:client_application) app.support_url = url - assert app.valid?, "#{url} is invalid, when it should be" + assert_predicate app, :valid?, "#{url} is invalid, when it should be" end bad.each do |url| @@ -42,7 +42,7 @@ class ClientApplicationTest < ActiveSupport::TestCase ok.each do |url| app = build(:client_application) app.callback_url = url - assert app.valid?, "#{url} is invalid, when it should be" + assert_predicate app, :valid?, "#{url} is invalid, when it should be" end bad.each do |url|