1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Update pagination matcher to use link header matcher

This commit is contained in:
Matt Jankowski 2024-07-11 12:18:23 -04:00
parent 711901d85a
commit b4bb27d975

View file

@ -3,7 +3,7 @@
RSpec::Matchers.define :include_pagination_headers do |links|
match do |response|
links.map do |key, value|
response.headers['Link'].find_link(['rel', key.to_s]).href == value
expect(response).to have_http_link_header(key, value)
end.all?
end