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-2.68.1 spec/integration/braintree/disbursement_spec.rb
braintree-2.68.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.67.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.66.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.65.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.64.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.63.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.62.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.61.1 spec/integration/braintree/disbursement_spec.rb
braintree-2.61.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.60.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.59.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.58.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.57.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.56.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.55.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.54.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.50.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.49.0 spec/integration/braintree/disbursement_spec.rb
braintree-2.48.1 spec/integration/braintree/disbursement_spec.rb