strings.each do |v|
validator.string = v
- assert validator.valid?, "'#{v}' should be valid"
+ assert_predicate validator, :valid?, "'#{v}' should be valid"
end
end
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