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