Sha256: e8a69977808b4f3997ab7df02ecda6a6654acb0ddd0a1ca094290f15700de10e
Contents?: true
Size: 591 Bytes
Versions: 15
Compression:
Stored size: 591 Bytes
Contents
require 'spec_helper' describe NetSuite::Records::ReturnAuthorizationItemList do let(:list) { NetSuite::Records::ReturnAuthorizationItemList.new } it 'has a items attribute' do expect(list.items).to be_kind_of(Array) end describe '#to_record' do before do list.items << NetSuite::Records::ReturnAuthorizationItem.new( :rate => 10 ) end it 'can represent itself as a SOAP record' do record = { 'tranCust:item' => [{ 'tranCust:rate' => 10 }] } expect(list.to_record).to eql(record) end end end
Version data entries
15 entries across 15 versions & 1 rubygems