Add validation for presence of content
-
daviscabral
How to test this?
I wanna help to fix some tickets.
thx!
-
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.
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.