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-26 05:47:14 +0300
committerHeinrich Lee Yu <hleeyu@gmail.com>2018-10-26 05:47:14 +0300
commite0f0c29b0cfe3c0c97191eeb96eae1299f3983d1 (patch)
treef5227f2614264fb1820ab1747579e11a5c9826c5 /spec/finders
parentbf1ed85a9d6a932a99d0a5fdf70e72ea36c2600c (diff)
Support lowercase none / any
Diffstat (limited to 'spec/finders')
-rw-r--r--spec/finders/issues_finder_spec.rb18
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