Sha256: 7d68b04af6d8beab4ebbdb1e0f0f9ca71ea489caa5adedb397c06f0edb9e822d

Contents?: true

Size: 605 Bytes

Versions: 17

Compression:

Stored size: 605 Bytes

Contents

require 'spec_helper'

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

  it 'has a custom_fields attribute' do
    list.lines.should 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'
          }]
        }
      list.to_record.should eql(record)
    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
netsuite-0.3.0 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.2.6 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.2.5 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.2.4 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.2.3 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.2.2 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.2.1 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.2.0 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.1.0 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.0.50 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.0.49 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.0.48 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.0.47 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.0.45 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.0.44 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.0.43 spec/netsuite/records/journal_entry_line_list_spec.rb
netsuite-0.0.42 spec/netsuite/records/journal_entry_line_list_spec.rb