X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2f9291ba5764fe104264ae7e3b6a361e11212e8b..39b0d27bae7791b37498cfd4fa99a686a3bca525:/test/validators/whitespace_validator_test.rb diff --git a/test/validators/whitespace_validator_test.rb b/test/validators/whitespace_validator_test.rb index c908538d1..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 @@ -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 @@ -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 @@ -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