about summary refs log tree commit diff
path: root/spec/controllers/well_known
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-08-01 19:14:02 +0200
committerGitHub <noreply@github.com>2019-08-01 19:14:02 +0200
commit8b9d0a05337b6bcf57b51abf45e21d9474bf2684 (patch)
treecc43f34fe2c2a7f9cf05a6c479bb9d624770407b /spec/controllers/well_known
parent706a48ee1f2075ffb35ad4ad9cfc2f23fffbffcb (diff)
Remove XML version of Webfinger and remove links to Atom feeds (#11460)
Fix #11453
Diffstat (limited to 'spec/controllers/well_known')
-rw-r--r--spec/controllers/well_known/webfinger_controller_spec.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/spec/controllers/well_known/webfinger_controller_spec.rb b/spec/controllers/well_known/webfinger_controller_spec.rb
index b05745ea3..20275aa63 100644
--- a/spec/controllers/well_known/webfinger_controller_spec.rb
+++ b/spec/controllers/well_known/webfinger_controller_spec.rb
@@ -56,17 +56,6 @@ PEM
       expect(json[:aliases]).to include('https://cb6e6126.ngrok.io/@alice', 'https://cb6e6126.ngrok.io/users/alice')
     end
 
-    it 'returns JSON when account can be found' do
-      get :show, params: { resource: alice.to_webfinger_s }, format: :xml
-
-      xml = Nokogiri::XML(response.body)
-
-      expect(response).to have_http_status(200)
-      expect(response.content_type).to eq 'application/xrd+xml'
-      expect(xml.at_xpath('//xmlns:Subject').content).to eq 'acct:alice@cb6e6126.ngrok.io'
-      expect(xml.xpath('//xmlns:Alias').map(&:content)).to include('https://cb6e6126.ngrok.io/@alice', 'https://cb6e6126.ngrok.io/users/alice')
-    end
-
     it 'returns http not found when account cannot be found' do
       get :show, params: { resource: 'acct:not@existing.com' }, format: :json