diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-20 15:39:16 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-20 15:39:16 +0100 |
commit | 993c3d14d5ff5aa6c43eaeb79c55dceddca8f5da (patch) | |
tree | aa4c8681ca0bacd3146b026a51b7346910eacbe5 /spec/support | |
parent | bc0b438d13f6bffd8e837f551a5415173f43f9f3 (diff) | |
download | gitlab-ce-993c3d14d5ff5aa6c43eaeb79c55dceddca8f5da.tar.gz |
Remove shared example for paginationremove-paginated-ressource
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/api/pagination_shared_examples.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/support/api/pagination_shared_examples.rb b/spec/support/api/pagination_shared_examples.rb deleted file mode 100644 index 352a6eeec79..00000000000 --- a/spec/support/api/pagination_shared_examples.rb +++ /dev/null @@ -1,20 +0,0 @@ -# Specs for paginated resources. -# -# Requires an API request: -# let(:request) { get api("/projects/#{project.id}/repository/branches", user) } -shared_examples 'a paginated resources' do - before do - # Fires the request - request - end - - it 'has pagination headers' do - expect(response.headers).to include('X-Total') - expect(response.headers).to include('X-Total-Pages') - expect(response.headers).to include('X-Per-Page') - expect(response.headers).to include('X-Page') - expect(response.headers).to include('X-Next-Page') - expect(response.headers).to include('X-Prev-Page') - expect(response.headers).to include('Link') - end -end |