diff options
author | Eva Kadlecová <evka.kadl@gmail.com> | 2018-09-30 12:31:01 +0300 |
---|---|---|
committer | Eva Kadlecová <evka.kadl@gmail.com> | 2018-10-01 20:29:56 +0300 |
commit | 10534e31622242ee6d6ad4d5502e1f2808979b43 (patch) | |
tree | 5368bab8b6cb0d26ca8de59f9d45fe5106b70f68 /spec/finders | |
parent | 227cc997fb107672e3293c56e0dcb1df72ad82d5 (diff) |
Filter issues without an Assignee via the API
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/issues_finder_spec.rb | 8 |
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 } } |