Sha256: b47dc2acc65dde4600b90066ad842c0cfce855ba91572ddbdf2db159debcc06b

Contents?: true

Size: 1.05 KB

Versions: 103

Compression:

Stored size: 1.05 KB

Contents

require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")

describe Braintree::Disbursement do
  describe "transactions" do
    it "finds the transactions associated with the disbursement" do
      attributes = {
        :id => "123456",
        :merchant_account => {
          :id => "sandbox_sub_merchant_account",
          :master_merchant_account => {
            :id => "sandbox_master_merchant_account",
            :status => "active"
          },
          :status => "active"
        },
        :transaction_ids => ["sub_merchant_transaction"],
        :amount => "100.00",
        :disbursement_date => "2013-04-10",
        :exception_message => "invalid_account_number",
        :follow_up_action => "update",
        :retry => false,
        :success => false
      }

      disbursement = Braintree::Disbursement._new(Braintree::Configuration.gateway, attributes)
      disbursement.transactions.maximum_size.should == 1
      transaction = disbursement.transactions.first
      transaction.id.should == "sub_merchant_transaction"
    end
  end
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
braintree-4.14.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.13.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.12.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.11.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.10.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.9.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.8.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.7.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.6.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.5.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.4.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.3.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.2.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.1.0 spec/integration/braintree/disbursement_spec.rb
braintree-4.0.0 spec/integration/braintree/disbursement_spec.rb
braintree-3.4.0 spec/integration/braintree/disbursement_spec.rb
braintree-3.3.0 spec/integration/braintree/disbursement_spec.rb
braintree-3.2.0 spec/integration/braintree/disbursement_spec.rb
braintree-3.1.0 spec/integration/braintree/disbursement_spec.rb
braintree-3.0.1 spec/integration/braintree/disbursement_spec.rb