Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2018-10-03 14:00:03 +0300
committerJacopo <beschi.jacopo@gmail.com>2018-10-03 15:19:08 +0300
commita1c3d40739ed133e1ca1cd9191628acf938809cf (patch)
treec5db7647bd3e842d1ef968df0cff14edf6d23fae /spec/finders
parentbf37ff071fca1b61681e42522ffb6a6dcf5c0e8d (diff)
Allows to filter issues by `Any milestone` in the API
In GET `api/v4/projects/:id/issues` the user can filter issues that have an assigned milestone through the parameter `milestone=Any+Milestone`.
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/issues_finder_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/finders/issues_finder_spec.rb b/spec/finders/issues_finder_spec.rb
index d78451112ec..0689c843104 100644
--- a/spec/finders/issues_finder_spec.rb
+++ b/spec/finders/issues_finder_spec.rb
@@ -125,6 +125,14 @@ describe IssuesFinder do
end
end
+ context 'filtering by any milestone' do
+ let(:params) { { milestone_title: Milestone::Any.title } }
+
+ it 'returns issues with any assigned milestone' do
+ expect(issues).to contain_exactly(issue1)
+ end
+ end
+
context 'filtering by upcoming milestone' do
let(:params) { { milestone_title: Milestone::Upcoming.name } }