Sha256: d54d08eee17c5d497bcfceb487cb0b2ece174a6aa07f09691f3a248413a57479

Contents?: true

Size: 424 Bytes

Versions: 3

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'

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

  it 'has a custom_fields attribute' do
    list.custom_fields.should be_kind_of(Array)
  end

  describe '#to_record' do
    it 'can represent itself as a SOAP record' do
      record = {
        'platformCore:customField' => []
      }
      list.to_record.should eql(record)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netsuite-0.0.17 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.16 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.15 spec/netsuite/records/custom_field_list_spec.rb