Sha256: 4edc80da9db291e84f5fb230caddcac83e1207738af75eaf4ff2847786b8c739

Contents?: true

Size: 563 Bytes

Versions: 54

Compression:

Stored size: 563 Bytes

Contents

require 'spec_helper'

describe NetSuite::Records::CreditMemoItemList do
  let(:list) { NetSuite::Records::CreditMemoItemList.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::CreditMemoItem.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

54 entries across 54 versions & 1 rubygems

Version Path
netsuite-0.9.3 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.9.2 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.9.1 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.9.0 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.12 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.11 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.10 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.9 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.8 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.7 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.6 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.5 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.4 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.3 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.2 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.1 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.8.0 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.7.9 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.7.8 spec/netsuite/records/credit_memo_item_list_spec.rb
netsuite-0.7.7 spec/netsuite/records/credit_memo_item_list_spec.rb