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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-18 18:15:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-18 18:15:16 +0300
commit9ee9d3012b3747270beb6dec6200d632d8afd0e3 (patch)
tree13dd297abb01c7b45261289c1f97a63dcd0a9fc3 /spec/finders
parent00cfeb7c25bdbd460efb83ad846cb924e73ee150 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/milestones_finder_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/finders/milestones_finder_spec.rb b/spec/finders/milestones_finder_spec.rb
index 80819a5760c..dee73625cb8 100644
--- a/spec/finders/milestones_finder_spec.rb
+++ b/spec/finders/milestones_finder_spec.rb
@@ -101,6 +101,13 @@ RSpec.describe MilestonesFinder do
expect(result).to contain_exactly(milestone_1, milestone_2)
end
+ it 'filters by id or title' do
+ params[:ids] = [milestone_2.id]
+ params[:title] = [milestone_1.title]
+
+ expect(result).to contain_exactly(milestone_1, milestone_2)
+ end
+
it 'filters by active state' do
params[:state] = 'active'