Sha256: e24bec7b4a267e7d2da19a80ca509c3f936182d8d5115c56467945bdb456767c

Contents?: true

Size: 459 Bytes

Versions: 60

Compression:

Stored size: 459 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
      expect(instance.attributes.has_key?(:record_test)).to be_falsey
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
netsuite-0.9.3 spec/netsuite/support/record_refs_spec.rb
netsuite-0.9.2 spec/netsuite/support/record_refs_spec.rb
netsuite-0.9.1 spec/netsuite/support/record_refs_spec.rb
netsuite-0.9.0 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.12 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.11 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.10 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.9 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.8 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.7 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.6 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.5 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.4 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.3 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.2 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.1 spec/netsuite/support/record_refs_spec.rb
netsuite-0.8.0 spec/netsuite/support/record_refs_spec.rb
netsuite-0.7.9 spec/netsuite/support/record_refs_spec.rb
netsuite-0.7.8 spec/netsuite/support/record_refs_spec.rb
netsuite-0.7.7 spec/netsuite/support/record_refs_spec.rb