diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-26 05:47:14 +0300 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-26 05:47:14 +0300 |
commit | e0f0c29b0cfe3c0c97191eeb96eae1299f3983d1 (patch) | |
tree | f5227f2614264fb1820ab1747579e11a5c9826c5 /spec/finders | |
parent | bf1ed85a9d6a932a99d0a5fdf70e72ea36c2600c (diff) |
Support lowercase none / any
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/issues_finder_spec.rb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/spec/finders/issues_finder_spec.rb b/spec/finders/issues_finder_spec.rb index 7f4f613b406..2f164ffa8b0 100644 --- a/spec/finders/issues_finder_spec.rb +++ b/spec/finders/issues_finder_spec.rb @@ -57,17 +57,21 @@ describe IssuesFinder do end context 'filtering by no assignee' do - let(:params) { { assignee_id: 0 } } + 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 no assignee' do - let(:params) { { assignee_id: 'None' } } + it 'returns issues not assigned to any assignee' do + params[:assignee_id] = 0 + + expect(issues).to contain_exactly(issue4) + end it 'returns issues not assigned to any assignee' do + params[:assignee_id] = 'none' + expect(issues).to contain_exactly(issue4) end end @@ -78,6 +82,12 @@ describe IssuesFinder do it 'returns issues assigned to any assignee' do expect(issues).to contain_exactly(issue1, issue2, issue3) end + + it 'returns issues assigned to any assignee' do + params[:assignee_id] = 'any' + + expect(issues).to contain_exactly(issue1, issue2, issue3) + end end context 'filtering by group_id' do |