Add have_http_link_header matcher and set header values as strings (#31010)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user