Fix status code expectation
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
0890aeb61a
commit
e696896487
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue