Add have_http_link_header matcher and set header values as strings (#31010)
This commit is contained in:
@@ -69,8 +69,7 @@ RSpec.describe 'Accounts show response' do
|
||||
expect(response)
|
||||
.to have_http_status(200)
|
||||
.and render_template(:show)
|
||||
|
||||
expect(response.headers['Link'].to_s).to include ActivityPub::TagManager.instance.uri_for(account)
|
||||
.and have_http_link_header(ActivityPub::TagManager.instance.uri_for(account)).for(rel: 'alternate')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user