]> git.openstreetmap.org Git - rails.git/blobdiff - test/validators/characters_validator_test.rb
Merge pull request #4062 from stalker314314/fix-erb-lint-copyright
[rails.git] / test / validators / characters_validator_test.rb
index e1409a5dc4a0d36dcd5adf6b3add0b197b2c6ecf..341ca4d77f417515853ff7566c9a992231515265 100644 (file)
@@ -23,7 +23,7 @@ class CharactersValidatorTest < ActiveSupport::TestCase
 
     valid.each do |v|
       c.chars = v
-      assert c.valid?, "'#{v}' should be valid"
+      assert_predicate c, :valid?, "'#{v}' should be valid"
     end
   end
 
@@ -48,7 +48,7 @@ class CharactersValidatorTest < ActiveSupport::TestCase
 
     valid.each do |v|
       c.chars = v
-      assert c.valid?, "'#{v}' should be valid"
+      assert_predicate c, :valid?, "'#{v}' should be valid"
     end
   end