gitlab-org--gitlab-foss/spec/support/matchers/pagination_matcher.rb
2017-02-16 15:38:40 +01:00

5 lines
223 B
Ruby

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