Merge branch 'fix/issues-spec' into 'master'

Fix spec failures in issues_spec.rb

Closes #42488

See merge request gitlab-org/gitlab-ce!16744
This commit is contained in:
Stan Hu 2018-01-26 22:16:17 +00:00
commit 98dd492766

View file

@ -1441,7 +1441,7 @@ describe API::Issues, :mailer do
context 'when source project does not exist' do
it 'returns 404 when trying to move an issue' do
post api("/projects/123/issues/#{issue.iid}/move", user),
post api("/projects/12345/issues/#{issue.iid}/move", user),
to_project_id: target_project.id
expect(response).to have_gitlab_http_status(404)
@ -1452,7 +1452,7 @@ describe API::Issues, :mailer 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: 123
to_project_id: 12345
expect(response).to have_gitlab_http_status(404)
end