Remove legacy post xml

This was used for the old post fetching

Related to diaspora/diaspora_federation#31
This commit is contained in:
Benjamin Neff 2017-04-30 17:07:06 +02:00
parent a6d7dbf1dd
commit 246d1ebbdf
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
2 changed files with 0 additions and 7 deletions

View file

@ -26,7 +26,6 @@ class PostsController < ApplicationController
render locals: {post: presenter}
end
format.mobile { render locals: {post: post} }
format.xml { render xml: DiasporaFederation::Salmon::XmlPayload.pack(Diaspora::Federation::Entities.post(post)) }
format.json { render json: presenter }
end
end

View file

@ -76,12 +76,6 @@ describe PostsController, type: :controller do
expect(response.body).to match "hello"
end
it "responds with diaspora xml if format is xml" do
get :show, id: public.guid, format: :xml
expected_xml = DiasporaFederation::Salmon::XmlPayload.pack(Diaspora::Federation::Entities.post(public)).to_xml
expect(response.body).to eq(expected_xml)
end
it "includes the correct uniques meta tags" do
presenter = PostPresenter.new(public)
methods_properties = {