my code from the railscast minitest exercise