Sha256: b97b57ef2947440bfa11d3974180426a16f4a98b2c104811a8165bd6f36ab005

Contents?: true

Size: 957 Bytes

Versions: 9

Compression:

Stored size: 957 Bytes

Contents

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

describe Braintree::SepaDirectDebitAccountNonceDetails do
  subject do
    described_class.new(
      :bank_reference_token => "a-bank-reference-token",
      :last_4 => "abcd",
      :mandate_type => "ONE_OFF",
      :merchant_or_partner_customer_id => "a-mp-customer-id",
    )
  end

  describe "#initialize" do
    it "sets attributes" do
      is_expected.to have_attributes(
        :bank_reference_token => "a-bank-reference-token",
        :last_4 => "abcd",
        :mandate_type => "ONE_OFF",
        :merchant_or_partner_customer_id => "a-mp-customer-id",
      )
    end
  end

  describe "inspect" do
    it "prints the attributes" do
      expect(subject.inspect).to eq(%(#<SepaDirectDebitAccountNonceDetailsbank_reference_token: "a-bank-reference-token", last_4: "abcd", mandate_type: "ONE_OFF", merchant_or_partner_customer_id: "a-mp-customer-id">))
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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