Sha256: 00e9f2d9efcdd68c2cb69826c33af37b817094af6ef212f95e06ae11376945d8
Contents?: true
Size: 726 Bytes
Versions: 57
Compression:
Stored size: 726 Bytes
Contents
require 'spec_helper' describe NetSuite::Records::VendorPaymentApplyList do let(:list) { NetSuite::Records::VendorPaymentApplyList.new } let(:apply) { NetSuite::Records::VendorPaymentApply.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::VendorPaymentApply) } end describe '#to_record' do it 'can represent itself as a SOAP record' do record = { 'tranPurch: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