Sha256: f2f4cc36a0fc7744aacc33fd1332db2aaaadc5333390a2871741bcbfc2b4b1fe

Contents?: true

Size: 524 Bytes

Versions: 59

Compression:

Stored size: 524 Bytes

Contents

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

describe Braintree::UsBankAccount do
  describe "default?" do
    it "is true if the us bank account is the default us bank account for the customer" do
      Braintree::UsBankAccount._new(:gateway, :default => true).default?.should == true
    end

    it "is false if the us bank account is not the default us bank account for the customer" do
      Braintree::UsBankAccount._new(:gateway, :default => false).default?.should == false
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

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