This may be better off as a controller test, unless your intent is to test that the website inlcludes the error?