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:
authorHiroyuki Sato <sathiroyuki@gmail.com>2019-01-13 19:24:31 +0300
committerHiroyuki Sato <sathiroyuki@gmail.com>2019-01-14 06:02:55 +0300
commitd32aec06fe2d6ee0b2b0c0d1ca8cfd9bab14e4e7 (patch)
tree6449d068a342509222709755177034c672f58236 /spec/finders
parent1161c99e5c5a6e717127b83665de00068d810e0e (diff)
Add 'in' filter that modifies scope of 'search' filter to issues and merge requests API
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 682fae06434..34cb09942be 100644
--- a/spec/finders/issues_finder_spec.rb
+++ b/spec/finders/issues_finder_spec.rb
@@ -314,6 +314,14 @@ describe IssuesFinder do
end
end
+ context 'filtering by issue term in title' do
+ let(:params) { { search: 'git', in: 'title' } }
+
+ it 'returns issues with title match for search term' do
+ expect(issues).to contain_exactly(issue1)
+ end
+ end
+
context 'filtering by issues iids' do
let(:params) { { iids: issue3.iid } }