Posts tagged with validations (1)

Aug26 Keeping specs in sync with your model validations post author

spec validations shoulda | comments

You have an ActiveRecord model with this long list of required attributes, and it can become a pain keeping your specs in sync with them. Mainly you need to guarantee than required ones are required and not required ones are not. And all that keeping in mind your validations can be dependent of models states. Thanks god, this is ruby and we have shoulda

Continue reading »