Sha256: 1015be171da53aaf1f1cb31a801fcf45e425f8dec49085b5f50839c99f19f035

Contents?: true

Size: 952 Bytes

Versions: 5

Compression:

Stored size: 952 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
      subject.inspect.should == %(#<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

5 entries across 5 versions & 1 rubygems

Version Path
braintree-4.14.0 spec/unit/braintree/sepa_debit_account_nonce_details_spec.rb
braintree-4.13.0 spec/unit/braintree/sepa_debit_account_nonce_details_spec.rb
braintree-4.12.0 spec/unit/braintree/sepa_debit_account_nonce_details_spec.rb
braintree-4.11.0 spec/unit/braintree/sepa_debit_account_nonce_details_spec.rb
braintree-4.10.0 spec/unit/braintree/sepa_debit_account_nonce_details_spec.rb