Make Participation entity non-relayable

Related to diaspora/diaspora_federation#35
This commit is contained in:
Benjamin Neff 2017-04-30 17:57:05 +02:00
parent 07e9bf8be8
commit 4244f2a5df
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -62,7 +62,14 @@ shared_examples_for "messages which are indifferent about sharing fact" do
end end
context "with participations" do 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 it "treats participation receive correctly" do
expect(Workers::ReceiveLocal).to receive(:perform_async) expect(Workers::ReceiveLocal).to receive(:perform_async)