accounting for the unified receiver interface of the method
This commit is contained in:
parent
ab8308b9df
commit
b42d675cb7
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ module Jobs
|
||||||
def self.perform(user_id, xml)
|
def self.perform(user_id, xml)
|
||||||
user = User.find(user_id)
|
user = User.find(user_id)
|
||||||
zord = Postzord::Receiver::Private.new(user, :salmon_xml => xml)
|
zord = Postzord::Receiver::Private.new(user, :salmon_xml => xml)
|
||||||
zord.perform
|
zord.perform!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ describe Jobs::ReceiveEncryptedSalmon do
|
||||||
it 'calls receive_salmon' do
|
it 'calls receive_salmon' do
|
||||||
zord = mock
|
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)
|
Postzord::Receiver::Private.should_receive(:new).with(@user, hash_including(:salmon_xml => @xml)).and_return(zord)
|
||||||
|
|
||||||
Jobs::ReceiveEncryptedSalmon.perform(@user.id, @xml)
|
Jobs::ReceiveEncryptedSalmon.perform(@user.id, @xml)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue