Fix test failure by accessing Content-Type header directly.

This commit is contained in:
Connor Shea 2016-09-27 20:52:41 -06:00
parent 8062380f60
commit e13dc69be2
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ describe Projects::RepositoriesController do
it 'responds with redirect in correct format' do
get :archive, namespace_id: project.namespace.path, project_id: project.path, format: "zip"
expect(response.content_type).to start_with 'text/html'
expect(response.header["Content-Type"]).to start_with('text/html')
expect(response).to be_redirect
end
end