Use a block when testing for raised errors. Otherwise the error is raised before we expect it, causing the test to fail when it shouldn't. As documented here: http://stackoverflow.com/questions/6837663/rspec-implicit-subject-and-exceptions