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:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-10-25 10:02:28 +0300
committerHeinrich Lee Yu <hleeyu@gmail.com>2018-10-26 05:32:14 +0300
commit227e30f7feb2072407a231a762835bf8d5103129 (patch)
tree0773bb5752f5d32842be1176b6c2c7abf859fed3 /spec/finders
parent679c0048a8f679aad456c02e30486150bbd0d93d (diff)
Issues API: Add None/Any option to assignee_id
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/issues_finder_spec.rb18
1 files changed, 17 insertions, 1 deletions
diff --git a/spec/finders/issues_finder_spec.rb b/spec/finders/issues_finder_spec.rb
index 0689c843104..7f4f613b406 100644
--- a/spec/finders/issues_finder_spec.rb
+++ b/spec/finders/issues_finder_spec.rb
@@ -59,11 +59,27 @@ describe IssuesFinder do
context 'filtering by no assignee' do
let(:params) { { assignee_id: 0 } }
- it 'returns issues not assign to any assignee' do
+ it 'returns issues not assigned to any assignee' do
expect(issues).to contain_exactly(issue4)
end
end
+ context 'filtering by no assignee' do
+ let(:params) { { assignee_id: 'None' } }
+
+ it 'returns issues not assigned to any assignee' do
+ expect(issues).to contain_exactly(issue4)
+ end
+ end
+
+ context 'filtering by any assignee' do
+ let(:params) { { assignee_id: 'Any' } }
+
+ it 'returns issues assigned to any assignee' do
+ expect(issues).to contain_exactly(issue1, issue2, issue3)
+ end
+ end
+
context 'filtering by group_id' do
let(:params) { { group_id: group.id } }