code from Test-Driven Rails class at thoughtbot