I copied and pasted this from the Everyday Rails Testing with RSpec book.