Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: mateusg
Hi Ryan. I was wondering how you test validations. Do you always do it through integration tests (like in the example below) or do you use something else?
page.should have_content "Name can't be blank"
page.should have_content "Age can't be blank"
fill_in "Name", :with => "John Doe"
fill_in "Age", :with => "something"
page.should have_content "Age must be a number"
If you do use integration tests, what's your advice to make the code cleaner/less repetitive?
Thanks for the great screencast!
The link to Advanced Rails Recipes is broken.