Commit cc218cd7 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Remove use of hard-coded ID in spec

Queries for the maximum to make sure we pass in
a non-existent group ID
parent c299e39f
......@@ -248,7 +248,9 @@ describe API::Groups do
end
it 'returns 404 for a non existing group' do
ldap_sync(1328, user, :disable!)
non_existent_group_id = Group.maximum(:id).to_i + 1
ldap_sync(non_existent_group_id, user, :disable!)
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