summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-02-20 15:39:16 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2017-02-20 15:39:16 +0100
commit993c3d14d5ff5aa6c43eaeb79c55dceddca8f5da (patch)
treeaa4c8681ca0bacd3146b026a51b7346910eacbe5 /spec/support
parentbc0b438d13f6bffd8e837f551a5415173f43f9f3 (diff)
downloadgitlab-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.rb20
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