Sha256: 87b74d42fc2edda530e670d7ceb6fe5d80a523129b5f1dd2815b5f06d722f972

Contents?: true

Size: 534 Bytes

Versions: 9

Compression:

Stored size: 534 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
      expect(Braintree::UsBankAccount._new(:gateway, :default => true).default?).to eq(true)
    end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
braintree-4.23.0 spec/unit/braintree/us_bank_account_spec.rb
braintree-4.22.0 spec/unit/braintree/us_bank_account_spec.rb
braintree-4.21.0 spec/unit/braintree/us_bank_account_spec.rb
braintree-4.20.0 spec/unit/braintree/us_bank_account_spec.rb
braintree-4.19.0 spec/unit/braintree/us_bank_account_spec.rb
braintree-4.18.0 spec/unit/braintree/us_bank_account_spec.rb
braintree-4.17.0 spec/unit/braintree/us_bank_account_spec.rb
braintree-4.16.0 spec/unit/braintree/us_bank_account_spec.rb
braintree-4.15.0 spec/unit/braintree/us_bank_account_spec.rb