cleanup parent_type for relayables
This commit is contained in:
parent
aac2a1652e
commit
6ef1545fd0
8 changed files with 0 additions and 48 deletions
|
|
@ -21,12 +21,6 @@ module DiasporaFederation
|
|||
# comment entity creation time
|
||||
# @return [Time] creation time
|
||||
property :created_at, default: -> { Time.now.utc }
|
||||
|
||||
# The {Comment} parent is a Post
|
||||
# @return [String] parent type
|
||||
def parent_type
|
||||
PARENT_TYPE
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -28,12 +28,6 @@ module DiasporaFederation
|
|||
# @see Conversation#guid
|
||||
# @return [String] conversation guid
|
||||
property :conversation_guid
|
||||
|
||||
# The {Message} parent is a {Conversation}
|
||||
# @return [String] parent type
|
||||
def parent_type
|
||||
PARENT_TYPE
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -18,12 +18,6 @@ module DiasporaFederation
|
|||
# @see PollAnswer#guid
|
||||
# @return [String] poll answer guid
|
||||
property :poll_answer_guid
|
||||
|
||||
# The {PollParticipation} parent is a {Poll}
|
||||
# @return [String] parent type
|
||||
def parent_type
|
||||
PARENT_TYPE
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -43,11 +43,5 @@ XML
|
|||
expect(parsed_comment.created_at).to eq(created_at.to_s)
|
||||
end
|
||||
end
|
||||
|
||||
describe "#parent_type" do
|
||||
it "returns \"Post\" as parent type" do
|
||||
expect(described_class.new(data).parent_type).to eq("Post")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -31,11 +31,5 @@ XML
|
|||
it_behaves_like "an XML Entity"
|
||||
|
||||
it_behaves_like "a relayable Entity"
|
||||
|
||||
describe "#parent_type" do
|
||||
it "returns data[:parent_type] as parent type" do
|
||||
expect(described_class.new(data).parent_type).to eq(data[:parent_type])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -27,11 +27,5 @@ XML
|
|||
it_behaves_like "an XML Entity"
|
||||
|
||||
it_behaves_like "a relayable Entity"
|
||||
|
||||
describe "#parent_type" do
|
||||
it "returns \"Conversation\" as parent type" do
|
||||
expect(described_class.new(data).parent_type).to eq("Conversation")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -30,11 +30,5 @@ XML
|
|||
it_behaves_like "an XML Entity"
|
||||
|
||||
it_behaves_like "a relayable Entity"
|
||||
|
||||
describe "#parent_type" do
|
||||
it "returns data[:parent_type] as parent type" do
|
||||
expect(described_class.new(data).parent_type).to eq(data[:parent_type])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -29,11 +29,5 @@ XML
|
|||
it_behaves_like "an XML Entity"
|
||||
|
||||
it_behaves_like "a relayable Entity"
|
||||
|
||||
describe "#parent_type" do
|
||||
it "returns \"Poll\" as parent type" do
|
||||
expect(described_class.new(data).parent_type).to eq("Poll")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue