diff options
author | Jarka Kadlecová <jarka@gitlab.com> | 2018-01-31 17:59:59 +0300 |
---|---|---|
committer | Jarka Kadlecová <jarka@gitlab.com> | 2018-02-06 18:02:02 +0300 |
commit | 7381944565701f2a8db5d58d5bc3c7e52e7f60bf (patch) | |
tree | a9bb7687b3809082555bd78dd5e1c5696d768910 /spec/lib/gitlab/search_results_spec.rb | |
parent | 0e15a5b805e832c22c67cead8c4829e6c77cd498 (diff) |
Support search in API
Diffstat (limited to 'spec/lib/gitlab/search_results_spec.rb')
-rw-r--r-- | spec/lib/gitlab/search_results_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/lib/gitlab/search_results_spec.rb b/spec/lib/gitlab/search_results_spec.rb index 17b48b3d062..9dbab95f70e 100644 --- a/spec/lib/gitlab/search_results_spec.rb +++ b/spec/lib/gitlab/search_results_spec.rb @@ -20,9 +20,13 @@ describe Gitlab::SearchResults do end describe '#objects' do - it 'returns without_page collection by default' do + it 'returns without_counts collection by default' do expect(results.objects('projects')).to be_kind_of(Kaminari::PaginatableWithoutCount) end + + it 'returns with counts collection when requested' do + expect(results.objects('projects', 1, false)).not_to be_kind_of(Kaminari::PaginatableWithoutCount) + end end describe '#projects_count' do |