Commit e4b31f54 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'fix-typo-in-spec-requests-api-merge_requests_spec.rb' into 'master'

Fix a URL typo in the MR API specs

See merge request gitlab-org/gitlab-ce!24236
parents cdd51c85 d739e8b9
......@@ -1189,13 +1189,13 @@ describe API::MergeRequests do
end
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)
end
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)
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