Skip to content
Extraits de code Groupes Projets
Valider b42d675c rédigé par Ilya Zhitomirskiy's avatar Ilya Zhitomirskiy
Parcourir les fichiers

accounting for the unified receiver interface of the method

parent ab8308b9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -11,7 +11,7 @@ module Jobs
def self.perform(user_id, xml)
user = User.find(user_id)
zord = Postzord::Receiver::Private.new(user, :salmon_xml => xml)
zord.perform
zord.perform!
end
end
end
......
......@@ -15,7 +15,7 @@ describe Jobs::ReceiveEncryptedSalmon do
it 'calls receive_salmon' do
zord = mock
zord.should_receive(:perform)
zord.should_receive(:perform!)
Postzord::Receiver::Private.should_receive(:new).with(@user, hash_including(:salmon_xml => @xml)).and_return(zord)
Jobs::ReceiveEncryptedSalmon.perform(@user.id, @xml)
......
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