Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add validation for presence of content

#8

It's currently possible to create/update a page with no content, which

causes breakage.

Reported by Jed Hurt · May 22nd, 2008 @ 10:55 AM

State: new
Milestone: none
Assigned to: Jed Hurt Jed Hurt

Activity

  1. daviscabral
    daviscabral

    How to test this?

    I wanna help to fix some tickets.

    thx!

    May 23rd, 2008 @ 09:26 AM

  2. Jed Hurt
    Jed Hurt

    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.

    May 23rd, 2008 @ 11:14 AM

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.