mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-30 04:14:36 +00:00
Improve failure message on pagination matcher (#31146)
This commit is contained in:
parent
337a7fcf30
commit
bfaa53343a
|
@ -7,7 +7,7 @@ RSpec::Matchers.define :include_pagination_headers do |links|
|
||||||
end.all?
|
end.all?
|
||||||
end
|
end
|
||||||
|
|
||||||
failure_message do |header|
|
failure_message do |response|
|
||||||
"expected that #{header} would have the same values as #{links}."
|
"expected that #{response.headers['Link']} would have the same values as #{links}."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue