Created
          October 10, 2018 14:28 
        
      - 
      
- 
        Save Pomeha/32b9aebe0b025f1f49029aadeb687c24 to your computer and use it in GitHub Desktop. 
Revisions
- 
        Pomeha created this gist Oct 10, 2018 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ before do paypal_payout_object = double payout_batch = double allow(payout_batch).to receive_message_chain(:batch_header, :payout_batch_id).and_return(payout_batch_id) allow(payout_batch).to receive_message_chain(:batch_header, :batch_status).and_return(payout_batch_status) allow(PayPal::SDK::REST::DataTypes::Payout).to receive(:new).and_return(paypal_payout_object) allow(paypal_payout_object).to receive(:create).and_return(payout_batch) end let(:payout_batch_id) { 1_337 } let(:payout_batch_status) { 'SUCCESS' }