BigW Consortium Gitlab

Fix status code expectation

Signed-off-by: 's avatarRémy Coutable <remy@rymai.me>
parent 0890aeb6
...@@ -82,7 +82,7 @@ describe Projects::LabelsController do ...@@ -82,7 +82,7 @@ describe Projects::LabelsController do
it 'creates labels' do it 'creates labels' do
post :generate, namespace_id: project.namespace.to_param, project_id: project.to_param 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 end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment