Improve failure message on pagination matcher (#31146)

pull/2797/head^2
Matt Jankowski 2024-07-25 10:28:08 -04:00 committed by GitHub
parent 337a7fcf30
commit bfaa53343a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ RSpec::Matchers.define :include_pagination_headers do |links|
end.all?
end
failure_message do |header|
"expected that #{header} would have the same values as #{links}."
failure_message do |response|
"expected that #{response.headers['Link']} would have the same values as #{links}."
end
end