f0391c2517
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
13 lines
458 B
Ruby
13 lines
458 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec::Matchers.define :include_pagination_headers do |expected|
|
|
match do |actual|
|
|
expect(actual.headers).to include('X-Total', 'X-Total-Pages', 'X-Per-Page', 'X-Page', 'X-Next-Page', 'X-Prev-Page', 'Link')
|
|
end
|
|
end
|
|
|
|
RSpec::Matchers.define :include_limited_pagination_headers do |expected|
|
|
match do |actual|
|
|
expect(actual.headers).to include('X-Per-Page', 'X-Page', 'X-Next-Page', 'X-Prev-Page', 'Link')
|
|
end
|
|
end
|