summaryrefslogtreecommitdiff
path: root/spec/finders
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-01-25 13:22:34 +0000
committerSean McGivern <sean@gitlab.com>2019-01-25 13:22:34 +0000
commitdfa31d5f2fa4a6c71c992710b9d1786707b4c912 (patch)
tree0494d10254b2f608d8f48917abe486a346363647 /spec/finders
parent04c9ab3183610017b8c2803b6a48a597fb86d8c1 (diff)
parent22eb2e4c227b060981bb37708222cdd07e825542 (diff)
downloadgitlab-ce-dfa31d5f2fa4a6c71c992710b9d1786707b4c912.tar.gz
Merge branch '54905-milestone-search' into 'master'
Resolve "Milestone search" Closes #54905 See merge request gitlab-org/gitlab-ce!24265
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/milestones_finder_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/finders/milestones_finder_spec.rb b/spec/finders/milestones_finder_spec.rb
index 656d120311a..ecffbb9e197 100644
--- a/spec/finders/milestones_finder_spec.rb
+++ b/spec/finders/milestones_finder_spec.rb
@@ -69,6 +69,12 @@ describe MilestonesFinder do
expect(result.to_a).to contain_exactly(milestone_1)
end
+
+ it 'filters by search_title' do
+ result = described_class.new(params.merge(search_title: 'one t')).execute
+
+ expect(result.to_a).to contain_exactly(milestone_1)
+ end
end
describe '#find_by' do