Remove XML version of Webfinger and remove links to Atom feeds (#11460)
Fix #11453
This commit is contained in:
@ -12,23 +12,6 @@ describe 'The webfinger route' do
|
||||
end
|
||||
end
|
||||
|
||||
describe 'asking for xml format' do
|
||||
it 'returns an xml response for xml format' do
|
||||
get webfinger_url(resource: alice.to_webfinger_s, format: :xml)
|
||||
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type).to eq 'application/xrd+xml'
|
||||
end
|
||||
|
||||
it 'returns an xml response for xml accept header' do
|
||||
headers = { 'HTTP_ACCEPT' => 'application/xrd+xml' }
|
||||
get webfinger_url(resource: alice.to_webfinger_s), headers: headers
|
||||
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type).to eq 'application/xrd+xml'
|
||||
end
|
||||
end
|
||||
|
||||
describe 'asking for json format' do
|
||||
it 'returns a json response for json format' do
|
||||
get webfinger_url(resource: alice.to_webfinger_s, format: :json)
|
||||
|
Reference in New Issue
Block a user