Example code and exercises from Rails Test Prescriptions, by Noel Rappin