Sha256: 2f228e737ebeee8e9a994c990a2f891134e228d617cefab0aa3d7c1f67d51725

Contents?: true

Size: 511 Bytes

Versions: 11

Compression:

Stored size: 511 Bytes

Contents

require 'spec_helper'

describe NetSuite::Records::CustomerCreditCardsList do
  let(:list) { NetSuite::Records::CustomerCreditCardsList.new }

  it 'has a credit_cards attribute' do
    expect(list.credit_cards).to be_kind_of(Array)
  end

  describe '#to_record' do
    it 'can represent itself as a SOAP record' do
      list.replace_all = true

      record = {
        'listRel:creditCards' => [],
        'listRel:replaceAll' => true
      }

      expect(list.to_record).to eql(record)
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
netsuite-0.9.3 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.9.2 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.9.1 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.9.0 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.8.12 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.8.11 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.8.10 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.8.9 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.8.8 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.8.7 spec/netsuite/records/customer_credit_cards_list_spec.rb
netsuite-0.8.6 spec/netsuite/records/customer_credit_cards_list_spec.rb