From c70dfbc68614658c98a0f17a01413844a2a98abf Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Tue, 24 Jan 2017 21:49:10 +0100 Subject: Add a custom pagination matcher --- spec/requests/api/project_hooks_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/requests/api/project_hooks_spec.rb') diff --git a/spec/requests/api/project_hooks_spec.rb b/spec/requests/api/project_hooks_spec.rb index f4973d71088..20c76bd2c05 100644 --- a/spec/requests/api/project_hooks_spec.rb +++ b/spec/requests/api/project_hooks_spec.rb @@ -25,6 +25,7 @@ describe API::ProjectHooks, 'ProjectHooks', api: true do expect(response).to have_http_status(200) expect(json_response).to be_an Array + expect(response).to include_pagination_headers expect(json_response.count).to eq(1) expect(json_response.first['url']).to eq("http://example.com") expect(json_response.first['issues_events']).to eq(true) -- cgit v1.2.1