Sha256: 7f98a9811cf2ea2533d68607217ae2f5b9dca76e2ee231cd4d163dc886127b06

Contents?: true

Size: 475 Bytes

Versions: 17

Compression:

Stored size: 475 Bytes

Contents

require 'rails_helper'

module BloomRemit
  module Txns
    RSpec.describe PayoutJob do

      it { is_expected.to be_retryable false }

      describe "#perform" do
        let(:txn) { build_stubbed(:bloom_remit_txn) }

        it "posts the job to Bloom Remit" do
          expect(Txn).to receive(:find).with(txn.id).and_return(txn)
          expect(Payout).to receive(:call).with(txn)
          described_class.new.perform(txn.id)
        end
      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bloom_remit-0.13.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.12.1 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.12.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.11.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.10.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.9.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.8.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.7.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.6.1 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.6.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.5.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.4.1 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.4.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.3.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.2.1 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.2.0 spec/jobs/bloom_remit/txns/payout_job.rb
bloom_remit-0.1.0 spec/jobs/bloom_remit/txns/payout_job.rb