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