Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider ea57fc5d rédigé par cmrd Senya's avatar cmrd Senya Validation de Benjamin Neff
Parcourir les fichiers

Fix mistyped remote person in dispatcher spec

parent 9f0b74eb
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -83,7 +83,7 @@ describe Diaspora::Federation::Dispatcher::Private do ...@@ -83,7 +83,7 @@ describe Diaspora::Federation::Dispatcher::Private do
expect(magic_env).to receive(:envelop).with(encryption_key).and_return(magic_env_xml) expect(magic_env).to receive(:envelop).with(encryption_key).and_return(magic_env_xml)
expect(DiasporaFederation::Salmon::EncryptedMagicEnvelope).to receive(:encrypt) do |magic_env, public_key| expect(DiasporaFederation::Salmon::EncryptedMagicEnvelope).to receive(:encrypt) do |magic_env, public_key|
expect(magic_env).to eq(magic_env_xml) expect(magic_env).to eq(magic_env_xml)
expect(public_key.to_s).to eq(remote_raphael.public_key.to_s) expect(public_key.to_s).to eq(remote_person.public_key.to_s)
json json
end end
...@@ -109,7 +109,7 @@ describe Diaspora::Federation::Dispatcher::Private do ...@@ -109,7 +109,7 @@ describe Diaspora::Federation::Dispatcher::Private do
expect(magic_env).to receive(:envelop).with(encryption_key).and_return(magic_env_xml) expect(magic_env).to receive(:envelop).with(encryption_key).and_return(magic_env_xml)
expect(DiasporaFederation::Salmon::EncryptedMagicEnvelope).to receive(:encrypt) do |magic_env, public_key| expect(DiasporaFederation::Salmon::EncryptedMagicEnvelope).to receive(:encrypt) do |magic_env, public_key|
expect(magic_env).to eq(magic_env_xml) expect(magic_env).to eq(magic_env_xml)
expect(public_key.to_s).to eq(remote_raphael.public_key.to_s) expect(public_key.to_s).to eq(remote_person.public_key.to_s)
json json
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter