Commit 27739503 authored by Stan Hu's avatar Stan Hu

Adjust the API issues move spec to use project ID 0

Closes #43631
parent 876f7a56
......@@ -1421,7 +1421,7 @@ describe API::Issues do
context 'when source project does not exist' do
it 'returns 404 when trying to move an issue' do
post api("/projects/12345/issues/#{issue.iid}/move", user),
post api("/projects/0/issues/#{issue.iid}/move", user),
to_project_id: target_project.id
expect(response).to have_gitlab_http_status(404)
......@@ -1432,7 +1432,7 @@ describe API::Issues do
context 'when target project does not exist' do
it 'returns 404 when trying to move an issue' do
post api("/projects/#{project.id}/issues/#{issue.iid}/move", user),
to_project_id: 12345
to_project_id: 0
expect(response).to have_gitlab_http_status(404)
end
......
......@@ -1266,7 +1266,7 @@ describe API::V3::Issues do
context 'when source project does not exist' do
it 'returns 404 when trying to move an issue' do
post v3_api("/projects/999999/issues/#{issue.id}/move", user),
post v3_api("/projects/0/issues/#{issue.id}/move", user),
to_project_id: target_project.id
expect(response).to have_gitlab_http_status(404)
......@@ -1277,7 +1277,7 @@ describe API::V3::Issues do
context 'when target project does not exist' do
it 'returns 404 when trying to move an issue' do
post v3_api("/projects/#{project.id}/issues/#{issue.id}/move", user),
to_project_id: 999999
to_project_id: 0
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