summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-03-05 08:06:29 +0100
committerToon Claes <toon@gitlab.com>2017-03-05 08:06:29 +0100
commitfaca3542026d31b68fd8986e5cb19422c181b688 (patch)
tree700684e3c84112aa735e16d5b2a3f761bd3f5850
parent33b956b49f898c447710b3ebe3bfa548e750ab12 (diff)
downloadgitlab-ce-tc-api-rename-v2.tar.gz
WIP: Use include_pagination_headers matchertc-api-rename-v2
-rw-r--r--spec/requests/api/v3/deployments_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/requests/api/v3/deployments_spec.rb b/spec/requests/api/v3/deployments_spec.rb
index 78458d497a6..3c5ce407b32 100644
--- a/spec/requests/api/v3/deployments_spec.rb
+++ b/spec/requests/api/v3/deployments_spec.rb
@@ -19,13 +19,7 @@ describe API::Deployments, api: true do
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')
+ expect(response).to include_pagination_headers
end
end