Add validation for presence of content
Reported by Jed Hurt | May 22nd, 2008 @ 10:55 AM
It's currently possible to create/update a page with no content, which
causes breakage.
Comments and changes to this ticket
-
-
Jed Hurt May 23rd, 2008 @ 11:14 AM
One would need to add a specification to page_spec.rb that attempts to create a page with no content and expects creation to fail. Initially creation will succeed and you'll have a failing spec. Then implement the validation in the model and make the specification pass.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
A no-frills wiki powered by Merb and DataMapper.
