Sha256: f467c700c96d27f781aa274324d8480f608b5462b1f485a83ba7857b98a7842a

Contents?: true

Size: 613 Bytes

Versions: 60

Compression:

Stored size: 613 Bytes

Contents

require 'spec_helper'

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

60 entries across 60 versions & 1 rubygems

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