Fix status code expectation

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2016-10-22 13:46:23 +02:00
parent 0890aeb61a
commit e696896487
No known key found for this signature in database
GPG Key ID: 46DF07E5CD9E96AB
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ describe Projects::LabelsController do
it 'creates labels' do
post :generate, namespace_id: project.namespace.to_param, project_id: project.to_param
expect(response.code).to eq(302)
expect(response).to have_http_status(302)
end
end
end