diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2016-05-16 22:05:38 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2016-06-26 07:21:00 +0300 |
commit | 7bb172cefb8d4ca383cd791fe557e7e1b09a0f2d (patch) | |
tree | 7f5dd6a5f9a532049424fc58545cbd9d2363dc17 /spec/workers | |
parent | 581f8d7226e79734f594d13452cd5861aecb5311 (diff) |
remove old Private and Public Receiver
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/receive_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/workers/receive_spec.rb b/spec/workers/receive_spec.rb deleted file mode 100644 index 0ee0b0a53..000000000 --- a/spec/workers/receive_spec.rb +++ /dev/null @@ -1,23 +0,0 @@ -require 'spec_helper' - -describe Workers::Receive do - before do - @user = alice - @person = FactoryGirl.create(:person) - @xml = '<xml></xml>' - allow(User).to receive(:find){ |id| - if id == @user.id - @user - else - nil - end - } - end - - it 'calls receive' do - zord_double = double() - expect(zord_double).to receive(:parse_and_receive).with(@xml) - expect(Postzord::Receiver::Private).to receive(:new).with(@user, anything).and_return(zord_double) - Workers::Receive.new.perform(@user.id, @xml, @person.id) - end -end |