#8 new
Jed Hurt

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

  • daviscabral

    daviscabral May 23rd, 2008 @ 09:26 AM

    How to test this?

    I wanna help to fix some tickets.

    thx!

  • Jed Hurt

    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 Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

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.

People watching this ticket

Pages