X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/12c1d5e6c05813a0697724277b4d8529a1a7c240..4f3576e91bcad927f037cd0f5a962960b9b2a8b5:/test/validators/whitespace_validator_test.rb?ds=sidebyside diff --git a/test/validators/whitespace_validator_test.rb b/test/validators/whitespace_validator_test.rb index 2607d9f23..1cb325df3 100644 --- a/test/validators/whitespace_validator_test.rb +++ b/test/validators/whitespace_validator_test.rb @@ -22,7 +22,7 @@ class WhitespaceValidatorTest < ActiveSupport::TestCase strings.each do |v| validator.string = v - assert_not validator.valid?, "'#{v}' should not be valid" + assert_not_predicate validator, :valid?, "'#{v}' should not be valid" end end @@ -44,7 +44,7 @@ class WhitespaceValidatorTest < ActiveSupport::TestCase strings.each do |v| validator.string = v - assert_not validator.valid?, "'#{v}' should not be valid" + assert_not_predicate validator, :valid?, "'#{v}' should not be valid" end end