X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d73a5d4bc015d304e7b8863a0e927ac0b134e07b..4f3576e91bcad927f037cd0f5a962960b9b2a8b5:/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 e1409a5dc..4c8be21e5 100644 --- a/test/validators/characters_validator_test.rb +++ b/test/validators/characters_validator_test.rb @@ -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 @@ -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 @@ -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 @@ -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