diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-07-22 14:44:20 +0300 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-07-22 14:44:20 +0300 |
commit | 972b5f4555f70fdb47c5b3dc78127377b7220cad (patch) | |
tree | ae8b41fe06336a8cbf31307d5fdbd3a03fd62c01 /spec/controllers/autocomplete_controller_spec.rb | |
parent | 5ca1899a5f436cd1a8d0f6938fa1c22c1fd3d1a3 (diff) |
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/controllers/autocomplete_controller_spec.rb')
-rw-r--r-- | spec/controllers/autocomplete_controller_spec.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/controllers/autocomplete_controller_spec.rb b/spec/controllers/autocomplete_controller_spec.rb index 3f1c0ae8ac4..eaa5d6cd073 100644 --- a/spec/controllers/autocomplete_controller_spec.rb +++ b/spec/controllers/autocomplete_controller_spec.rb @@ -295,28 +295,6 @@ describe AutocompleteController do end end - context 'authorized projects with offset' do - before do - authorized_project2 = create(:project) - authorized_project3 = create(:project) - - authorized_project.add_maintainer(user) - authorized_project2.add_maintainer(user) - authorized_project3.add_maintainer(user) - end - - describe 'GET #projects with project ID and offset_id' do - before do - get(:projects, params: { project_id: project.id, offset_id: authorized_project.id }) - end - - it 'returns projects' do - expect(json_response).to be_kind_of(Array) - expect(json_response.size).to eq 2 # Of a total of 3 - end - end - end - context 'authorized projects without admin_issue ability' do before do authorized_project.add_guest(user) |