# Specs for paginated resources.## Requires an API request:# let(:request) { get api("/projects/#{project.id}/repository/branches", user) }shared_examples'a paginated resources'dobeforedo# Fires the requestrequestendit'has pagination headers'doexpect(response.headers).toinclude('X-Total')expect(response.headers).toinclude('X-Total-Pages')expect(response.headers).toinclude('X-Per-Page')expect(response.headers).toinclude('X-Page')expect(response.headers).toinclude('X-Next-Page')expect(response.headers).toinclude('X-Prev-Page')expect(response.headers).toinclude('Link')endend