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