Commit d739e8b9 authored by Rémy Coutable's avatar Rémy Coutable

Fix a URL typo in the MR API specs

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 5106f88a
...@@ -1189,13 +1189,13 @@ describe API::MergeRequests do ...@@ -1189,13 +1189,13 @@ describe API::MergeRequests do
end end
it 'returns 404 if the merge request is not found' do it 'returns 404 if the merge request is not found' do
post api("/projects/#{project.id}/merge_requests/123/merge_when_pipeline_succeeds", user) post api("/projects/#{project.id}/merge_requests/123/cancel_merge_when_pipeline_succeeds", user)
expect(response).to have_gitlab_http_status(404) expect(response).to have_gitlab_http_status(404)
end end
it 'returns 404 if the merge request id is used instead of iid' do it 'returns 404 if the merge request id is used instead of iid' do
post api("/projects/#{project.id}/merge_requests/#{merge_request.id}/merge_when_pipeline_succeeds", user) post api("/projects/#{project.id}/merge_requests/#{merge_request.id}/cancel_merge_when_pipeline_succeeds", user)
expect(response).to have_gitlab_http_status(404) expect(response).to have_gitlab_http_status(404)
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