Sha256: 17b263c63d89de4befdea7d00f0a0f30424724dda90ac4536b24a70d9aa18bb2

Contents?: true

Size: 730 Bytes

Versions: 17

Compression:

Stored size: 730 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
    before do
      list.custom_fields << NetSuite::Records::CustomField.new(
        :internal_id => '3',
        :type        => 'BooleanCustomFieldRef',
        :value       => false
      )
    end

    it 'can represent itself as a SOAP record' do
      record = "<platformCore:customField internalId=\"3\" xsi:type=\"BooleanCustomFieldRef\"><platformCore:value>false</platformCore:value></platformCore:customField>"
      list.to_record.should eql(record)
    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
netsuite-0.0.50 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.49 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.48 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.47 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.45 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.44 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.43 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.42 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.41 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.40 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.39 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.38 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.37 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.36 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.35 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.34 spec/netsuite/records/custom_field_list_spec.rb
netsuite-0.0.33 spec/netsuite/records/custom_field_list_spec.rb