0
0
Fork 0

Add have_http_link_header matcher and set header values as strings (#31010)

This commit is contained in:
Matt Jankowski 2024-09-05 16:05:38 -04:00 committed by GitHub
parent 09017dd8f0
commit 7efe0bde9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 54 additions and 39 deletions

View file

@ -94,8 +94,9 @@ RSpec.describe 'Home', :inline_jobs do
it 'returns http unprocessable entity', :aggregate_failures do
subject
expect(response).to have_http_status(422)
expect(response.headers['Link']).to be_nil
expect(response)
.to have_http_status(422)
.and not_have_http_link_header
end
end
end

View file

@ -47,8 +47,9 @@ RSpec.describe 'API V1 Timelines List' do
it 'returns http unprocessable entity' do
get "/api/v1/timelines/list/#{list.id}", headers: headers
expect(response).to have_http_status(422)
expect(response.headers['Link']).to be_nil
expect(response)
.to have_http_status(422)
.and not_have_http_link_header
end
end
end