X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..75a4d406b9e8471c0fe0ebf2a47d47f0ae36289a:/test/validators/characters_validator_test.rb?ds=sidebyside diff --git a/test/validators/characters_validator_test.rb b/test/validators/characters_validator_test.rb index 341ca4d77..4c8be21e5 100644 --- a/test/validators/characters_validator_test.rb +++ b/test/validators/characters_validator_test.rb @@ -36,7 +36,7 @@ class CharactersValidatorTest < ActiveSupport::TestCase invalid.each do |v| c.chars = v - assert_not c.valid?, "'#{v}' should not be valid" + assert_not_predicate c, :valid?, "'#{v}' should not be valid" end end @@ -60,7 +60,7 @@ class CharactersValidatorTest < ActiveSupport::TestCase invalid.each do |v| c.chars = v - assert_not c.valid?, "'#{v}' should not be valid" + assert_not_predicate c, :valid?, "'#{v}' should not be valid" end end end