diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-07-22 11:44:20 +0000 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-07-22 11:44:20 +0000 |
commit | 972b5f4555f70fdb47c5b3dc78127377b7220cad (patch) | |
tree | ae8b41fe06336a8cbf31307d5fdbd3a03fd62c01 /spec/models | |
parent | 5ca1899a5f436cd1a8d0f6938fa1c22c1fd3d1a3 (diff) | |
download | gitlab-ce-972b5f4555f70fdb47c5b3dc78127377b7220cad.tar.gz |
Removed project autocomplete pagination
This pagination is not used anywhere so there is no reason
to keep it. It seems the usage of offset_id was probably
removed in 90c60138db4e1f86026aac5760febe4ba066ca30
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_spec.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 927c072be10..bcb2da7eed2 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -1675,26 +1675,6 @@ describe Project do end end - describe '.paginate_in_descending_order_using_id' do - let!(:project1) { create(:project) } - let!(:project2) { create(:project) } - - it 'orders the relation in descending order' do - expect(described_class.paginate_in_descending_order_using_id) - .to eq([project2, project1]) - end - - it 'applies a limit to the relation' do - expect(described_class.paginate_in_descending_order_using_id(limit: 1)) - .to eq([project2]) - end - - it 'limits projects by and ID when given' do - expect(described_class.paginate_in_descending_order_using_id(before: project2.id)) - .to eq([project1]) - end - end - describe '.including_namespace_and_owner' do it 'eager loads the namespace and namespace owner' do create(:project) |