Add have_http_link_header
matcher and set header values as strings (#31010)
This commit is contained in:
parent
09017dd8f0
commit
7efe0bde9d
10 changed files with 54 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue