Example code from "The Rspec Book"