Commit 335793d8 authored by Stan Hu's avatar Stan Hu

Merge branch '207191-master-broken-in-ee-spec-requests-api-groups_spec-rb-250' into 'master'

Fix spec with hard-coded ID

Closes #207191

See merge request gitlab-org/gitlab!25497
parents 0ddee28a cc218cd7
......@@ -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