use the value from validates_each in validator

This commit is contained in:
Adam Meehan
2009-02-08 12:46:22 +11:00
parent a1ae5f9313
commit 7ef9078369
3 changed files with 3 additions and 4 deletions

View File

@@ -500,7 +500,7 @@ describe ValidatesTimeliness::Validator do
def validate_with(attr_name, value)
person.send("#{attr_name}=", value)
validator.call(person, attr_name)
validator.call(person, attr_name, value)
end
def should_have_error(attr_name, error)