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
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