diff --git a/lib/diaspora_federation/receiver/private.rb b/lib/diaspora_federation/receiver/private.rb index 738388a..2db694e 100644 --- a/lib/diaspora_federation/receiver/private.rb +++ b/lib/diaspora_federation/receiver/private.rb @@ -1,5 +1,4 @@ module DiasporaFederation - class Receiver # Receiver::Private is used to receive private messages, which are addressed to a specific user, encrypted with his # public key and packed using Salmon::EncryptedSlap diff --git a/spec/controllers/diaspora_federation/receive_controller_spec.rb b/spec/controllers/diaspora_federation/receive_controller_spec.rb index 9f77fce..6e28b69 100644 --- a/spec/controllers/diaspora_federation/receive_controller_spec.rb +++ b/spec/controllers/diaspora_federation/receive_controller_spec.rb @@ -20,7 +20,7 @@ module DiasporaFederation expect(DiasporaFederation.callbacks).to receive(:trigger) .with(:queue_public_receive, "") - post :public, xml: CGI::escape("") + post :public, xml: CGI.escape("") end end @@ -53,7 +53,7 @@ module DiasporaFederation .with(:queue_private_receive, "any-guid", "") .and_return(true) - post :private, guid: "any-guid", xml: CGI::escape("") + post :private, guid: "any-guid", xml: CGI.escape("") end end end