Add test for RelatedEntity#to_json
This commit is contained in:
parent
c92624d926
commit
8e43c2716d
2 changed files with 7 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ module DiasporaFederation
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# never add {RelatedEntity} to json
|
||||||
def to_json
|
def to_json
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -30,5 +30,11 @@ module DiasporaFederation
|
||||||
expect(described_class.new(data).to_xml).to be_nil
|
expect(described_class.new(data).to_xml).to be_nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "#to_json" do
|
||||||
|
it "returns nil" do
|
||||||
|
expect(described_class.new(data).to_json).to be_nil
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue