From 358e84477211adc06eb0557dba95a53f937a4e5d Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sat, 19 Dec 2015 17:31:53 +0100 Subject: [PATCH] cleanup for rubocop --- lib/diaspora_federation/receiver/private.rb | 1 - .../diaspora_federation/receive_controller_spec.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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