headers: {'HTTP_ACCEPT' => 'text/html'})
assert_response 302
assert_match(%r{http://www.example.com/login$}, @response.headers['Location'],
headers: {'HTTP_ACCEPT' => 'text/html'})
assert_response 302
assert_match(%r{http://www.example.com/login$}, @response.headers['Location'],