X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/783b5e3729228908d7404ae7404af1023501a906..8daaab2aa8a9decd185bbc28c685bbcbb5c2ea9e:/test/validators/whitespace_validator_test.rb diff --git a/test/validators/whitespace_validator_test.rb b/test/validators/whitespace_validator_test.rb index c908538d1..2607d9f23 100644 --- a/test/validators/whitespace_validator_test.rb +++ b/test/validators/whitespace_validator_test.rb @@ -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