Sha256: d4512c24bf285f0e17a1a849f6540b13c040f6bf464c766ce71b94d6b55c320c

Contents?: true

Size: 454 Bytes

Versions: 9

Compression:

Stored size: 454 Bytes

Contents

require 'spec_helper'

describe NetSuite::Support::RecordRefs do
  let(:klass) { Class.new.send(:include, NetSuite::Support::Fields) }
  let(:instance) { klass.new }

  context "assigning record reference" do
    it 'assigns a nil value for a field with a specified class' do
      klass.field(:record_test, NetSuite::Records::RecordRef)
      instance.record_test = nil
      instance.attributes.has_key?(:record_test).should be_false
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
netsuite-0.2.6 spec/netsuite/support/record_refs_spec.rb
netsuite-0.2.5 spec/netsuite/support/record_refs_spec.rb
netsuite-0.2.4 spec/netsuite/support/record_refs_spec.rb
netsuite-0.2.3 spec/netsuite/support/record_refs_spec.rb
netsuite-0.2.2 spec/netsuite/support/record_refs_spec.rb
netsuite-0.2.1 spec/netsuite/support/record_refs_spec.rb
netsuite-0.2.0 spec/netsuite/support/record_refs_spec.rb
netsuite-0.1.0 spec/netsuite/support/record_refs_spec.rb
netsuite-0.0.50 spec/netsuite/support/record_refs_spec.rb