Sha256: 48ac4d7bf036fd0edbefaf25f93d13a7a93202d7c17157d52013214b2085b9ed
Contents?: true
Size: 733 Bytes
Versions: 57
Compression:
Stored size: 733 Bytes
Contents
require 'spec_helper' describe NetSuite::Records::CustomerPaymentApplyList do let(:list) { NetSuite::Records::CustomerPaymentApplyList.new } let(:apply) { NetSuite::Records::CustomerPaymentApply.new } it 'can have applies be added to it' do list.applies << apply apply_list = list.applies expect(apply_list).to be_kind_of(Array) expect(apply_list.length).to eql(1) apply_list.each { |i| expect(i).to be_kind_of(NetSuite::Records::CustomerPaymentApply) } end describe '#to_record' do it 'can represent itself as a SOAP record' do record = { 'tranCust:apply' => [{},{}] } list.applies.concat([apply,apply]) expect(list.to_record).to eql(record) end end end
Version data entries
57 entries across 57 versions & 1 rubygems