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