Sha256: cf8ec7bfd5823b0bccc3ed004e2fb4dab0613c23975320907166fa50bd371559

Contents?: true

Size: 648 Bytes

Versions: 14

Compression:

Stored size: 648 Bytes

Contents

require 'spec_helper'

describe NetSuite::Records::InterCompanyJournalEntryLineList do
  let(:list) { NetSuite::Records::InterCompanyJournalEntryLineList.new }

  it 'has a custom_fields attribute' do
    expect(list.lines).to be_kind_of(Array)
  end

  describe '#to_record' do
    before do
      list.lines << NetSuite::Records::InterCompanyJournalEntryLine.new(:memo => 'This is a memo')
    end

    it 'can represent itself as a SOAP record' do
      record =
        {
          'tranGeneral:line' => [{
            'tranGeneral:memo' => 'This is a memo'
          }]
        }
      expect(list.to_record).to eql(record)
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
netsuite-0.9.3 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.9.2 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.9.1 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.9.0 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.12 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.11 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.10 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.9 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.8 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.7 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.6 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.5 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.4 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb
netsuite-0.8.3 spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb