- #print @response.body
- # Check that there is some payload alerting the user to the redirect
- # and allowing them to get to the page they are being directed to
- assert_select "html:root" do
- assert_select "body" do
- assert_select "a[href='http://www.example.com/user/test/diary/new']"
- end
- end
- # Required due to a bug in the rails testing framework
- # http://markmail.org/message/wnslvi5xv5moqg7g
- @html_document = nil