Sha256: c033e2bc1c18f8325a8f689cccc93ccc2ef203b10b8c2bf6193ebc62f56f17bc

Contents?: true

Size: 595 Bytes

Versions: 7

Compression:

Stored size: 595 Bytes

Contents

require 'spec_helper'

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

  it 'has a deposits attribute' do
    list.deposits.should be_kind_of(Array)
  end

  describe '#to_record' do
    before do
      list.deposits << NetSuite::Records::CustomerRefundDeposit.new(:apply => false)
    end

    it 'can represent itself as a SOAP record' do
      record = {
        'tranCust:customerRefundDeposit' => [{
          'tranCust:apply' => false
        }]
      }
      list.to_record.should eql(record)
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
netsuite-0.3.0 spec/netsuite/records/customer_refund_deposit_list_spec.rb
netsuite-0.2.6 spec/netsuite/records/customer_refund_deposit_list_spec.rb
netsuite-0.2.5 spec/netsuite/records/customer_refund_deposit_list_spec.rb
netsuite-0.2.4 spec/netsuite/records/customer_refund_deposit_list_spec.rb
netsuite-0.2.3 spec/netsuite/records/customer_refund_deposit_list_spec.rb
netsuite-0.2.2 spec/netsuite/records/customer_refund_deposit_list_spec.rb
netsuite-0.2.1 spec/netsuite/records/customer_refund_deposit_list_spec.rb