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