]> git.openstreetmap.org Git - rails.git/blobdiff - test/validators/whitespace_validator_test.rb
Teach database structure normalise to ignore btree_gist comment
[rails.git] / test / validators / whitespace_validator_test.rb
index c908538d1cb55f449d0576aa80c0e80aa486c510..2607d9f2359b2a966fc42e1763b0caab1fb9d92d 100644 (file)
@@ -33,7 +33,7 @@ class WhitespaceValidatorTest < ActiveSupport::TestCase
 
     strings.each do |v|
       validator.string = v
-      assert validator.valid?, "'#{v}' should be valid"
+      assert_predicate validator, :valid?, "'#{v}' should be valid"
     end
   end
 
@@ -55,7 +55,7 @@ class WhitespaceValidatorTest < ActiveSupport::TestCase
 
     strings.each do |v|
       validator.string = v
-      assert validator.valid?, "'#{v}' should be valid"
+      assert_predicate validator, :valid?, "'#{v}' should be valid"
     end
   end
 end