accounting for the unified receiver interface of the method

This commit is contained in:
Ilya Zhitomirskiy 2011-10-04 15:51:30 -07:00
parent ab8308b9df
commit b42d675cb7
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)