You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
620 B
17 lines
620 B
# frozen_string_literal: true |
|
|
|
require 'rails_helper' |
|
|
|
RSpec.describe 'Link headers' do |
|
describe 'on the account show page' do |
|
let(:account) { Fabricate(:account, username: 'test') } |
|
|
|
it 'contains webfinger and activitypub urls in link header' do |
|
get short_account_path(username: account) |
|
|
|
expect(response) |
|
.to have_http_link_header(webfinger_url(resource: account.to_webfinger_s)).for(rel: 'lrdd', type: 'application/jrd+json') |
|
.and have_http_link_header(ActivityPub::TagManager.instance.uri_for(account)).for(rel: 'alternate', type: 'application/activity+json') |
|
end |
|
end |
|
end
|
|
|