From 4244f2a5dfe6a37b814cc9cfadfecc8504a73468 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 30 Apr 2017 17:57:05 +0200 Subject: [PATCH] Make Participation entity non-relayable Related to diaspora/diaspora_federation#35 --- .../federation/shared_receive_stream_items.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spec/integration/federation/shared_receive_stream_items.rb b/spec/integration/federation/shared_receive_stream_items.rb index e025a138d..86cb4125b 100644 --- a/spec/integration/federation/shared_receive_stream_items.rb +++ b/spec/integration/federation/shared_receive_stream_items.rb @@ -62,7 +62,14 @@ shared_examples_for "messages which are indifferent about sharing fact" do end context "with participations" do - let(:entity) { create_relayable_entity(:participation_entity, local_parent, sender_id) } + let(:entity) { + Fabricate( + :participation_entity, + author: sender_id, + parent_guid: local_parent.guid, + parent: Diaspora::Federation::Entities.related_entity(local_parent) + ) + } it "treats participation receive correctly" do expect(Workers::ReceiveLocal).to receive(:perform_async)