diff options
author | ThibG <thib@sitedethib.com> | 2019-08-05 17:58:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-05 17:58:39 +0200 |
commit | 0aee74d78a801285ac33647791da9cb1ede9ddf4 (patch) | |
tree | 0cf032b9cecdfc4058f59dfaa5c6197e463a5ffe /spec/requests | |
parent | ff0ceb28b3f1b19a6851a482f8203e434e50f167 (diff) | |
parent | 68eb58b8058579f551b8aa94e800283cd0f93f7f (diff) |
Merge pull request #1187 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/webfinger_request_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/requests/webfinger_request_spec.rb b/spec/requests/webfinger_request_spec.rb index 7f9e1162e..48823714e 100644 --- a/spec/requests/webfinger_request_spec.rb +++ b/spec/requests/webfinger_request_spec.rb @@ -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) |