diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-25 15:02:28 +0800 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-26 10:32:14 +0800 |
commit | 227e30f7feb2072407a231a762835bf8d5103129 (patch) | |
tree | 0773bb5752f5d32842be1176b6c2c7abf859fed3 /spec/finders | |
parent | 679c0048a8f679aad456c02e30486150bbd0d93d (diff) | |
download | gitlab-ce-227e30f7feb2072407a231a762835bf8d5103129.tar.gz |
Issues API: Add None/Any option to assignee_id
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/issues_finder_spec.rb | 18 |
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 } } |