提交 e55e5d6d 编写于 作者: H Heinrich Lee Yu

Fix test with hard coded id

上级 82ccc8bc
......@@ -172,7 +172,9 @@ describe API::Issues do
end
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)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册