EOF invokes the validationForInsert method when saving new objects and validationForUpdate when saving existing ones. After this fix, the canBeSaved matcher will invoke the correct validation method according to the state of the object being validated. (closes #47)
EOF invokes the
validationForInsert
method when saving new objects andvalidationForUpdate
when saving existing ones. After this fix, the canBeSaved matcher will invoke the correct validation method according to the state of the object being validated. (closes #47)