]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/client_application_test.rb
Rewrite bbox only in place history atom links
[rails.git] / test / models / client_application_test.rb
index c0b7b7977fcd6d84a7e4b6c5a9422768c5caccce..c3f1df23c23c996da989ddaaaf7dba90c9fb31ac 100644 (file)
@@ -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|