I'm not entirely sure how to do this in a controller test - wouldn't that kind of spec be better as an integration test?