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:
authorEva Kadlecová <evka.kadl@gmail.com>2018-09-30 12:31:01 +0300
committerEva Kadlecová <evka.kadl@gmail.com>2018-10-01 20:29:56 +0300
commit10534e31622242ee6d6ad4d5502e1f2808979b43 (patch)
tree5368bab8b6cb0d26ca8de59f9d45fe5106b70f68 /spec/finders
parent227cc997fb107672e3293c56e0dcb1df72ad82d5 (diff)
Filter issues without an Assignee via the 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 07a2fa86dd7..d78451112ec 100644
--- a/spec/finders/issues_finder_spec.rb
+++ b/spec/finders/issues_finder_spec.rb
@@ -56,6 +56,14 @@ describe IssuesFinder do
end
end
+ context 'filtering by no assignee' do
+ let(:params) { { assignee_id: 0 } }
+
+ it 'returns issues not assign to any assignee' do
+ expect(issues).to contain_exactly(issue4)
+ end
+ end
+
context 'filtering by group_id' do
let(:params) { { group_id: group.id } }