diff options
author | Joren De Groof <git@jorendegroof.be> | 2017-03-31 11:38:40 +0200 |
---|---|---|
committer | Joren De Groof <git@jorendegroof.be> | 2017-04-03 18:36:51 +0200 |
commit | d663b8de246a4307a283b464ab4b5344463d30c3 (patch) | |
tree | c0d739f9b3f325f0f95784559572501b12f44966 /spec | |
parent | 2faf955c241ce7e99111f8fd0cae2e7ab6167e5a (diff) | |
download | gitlab-ce-d663b8de246a4307a283b464ab4b5344463d30c3.tar.gz |
Fixes milestone/merge_request API endpoint to really scope the results
The MergeRequestsFinder uses the milestone_title instead of the
milestone_id
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/milestones_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/requests/api/milestones_spec.rb b/spec/requests/api/milestones_spec.rb index 7fb728fed6f..598968aff70 100644 --- a/spec/requests/api/milestones_spec.rb +++ b/spec/requests/api/milestones_spec.rb @@ -306,6 +306,8 @@ describe API::Milestones, api: true do end it 'returns project merge_requests for a particular milestone' do + # eager-load another_merge_request + another_merge_request get api("/projects/#{project.id}/milestones/#{milestone.id}/merge_requests", user) expect(response).to have_http_status(200) |