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:
parent
711901d85a
commit
b4bb27d975
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue