Sha256: 6708aeb1091da9f1590fafd83d4b3d691583041ae89a73d13e43a230604d91d6

Contents?: true

Size: 532 Bytes

Versions: 17

Compression:

Stored size: 532 Bytes

Contents

require 'rails_helper'

module BloomRemit
  module Txns
    RSpec.describe Payout, ".call" do

      it "makes a call to Bloom Remit" do
        actions = [
          InitializeClient,
          Post,
          HandleResponse,
          RunHook,
        ]

        txn = build_stubbed(:bloom_remit_txn)

        ctx = LightService::Context.new(txn: txn)

        actions.each do |action|
          expect(action).to receive(:execute).with(ctx).and_return(ctx)
        end

        described_class.(txn)
      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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