Commit 4c81993c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch '11848-fix-broken-master-ce' into 'master'

[CE] Fix test with hard coded id

See merge request gitlab-org/gitlab-ce!28933
parents a546b76a e55e5d6d
...@@ -172,7 +172,9 @@ describe API::Issues do ...@@ -172,7 +172,9 @@ describe API::Issues do
end end
it 'returns 404 when project does not exist' do it 'returns 404 when project does not exist' do
get api('/projects/1000/issues', non_member) max_project_id = Project.maximum(:id).to_i
get api("/projects/#{max_project_id + 1}/issues", non_member)
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