Add test for RelatedEntity#to_json

This commit is contained in:
Benjamin Neff 2017-06-04 01:39:17 +02:00
parent c92624d926
commit 8e43c2716d
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
2 changed files with 7 additions and 0 deletions

View file

@ -41,6 +41,7 @@ module DiasporaFederation
nil
end
# never add {RelatedEntity} to json
def to_json
nil
end

View file

@ -30,5 +30,11 @@ module DiasporaFederation
expect(described_class.new(data).to_xml).to be_nil
end
end
describe "#to_json" do
it "returns nil" do
expect(described_class.new(data).to_json).to be_nil
end
end
end
end