Sha256: 7fc1b710ce09ee877aaf59382451d259a45ba8baf79bbafc0ae68d43098dfdf2
Contents?: true
Size: 850 Bytes
Versions: 8
Compression:
Stored size: 850 Bytes
Contents
require 'spec_helper' describe NetSuite::Records::CustomerAddressbookList do let(:list) { NetSuite::Records::CustomerAddressbookList.new } it 'has an addressbooks attribute' do expect(list.addressbooks).to be_kind_of(Array) end describe '#to_record' do it 'can represent itself as a SOAP record' do record = { 'listRel:addressbook' => [], 'listRel:replaceAll' => true } expect(list.to_record).to eql(record) end end describe "#replace_all" do it "returns true by default" do expect(list.replace_all).to eql(true) end it "can be changed via accessor" do list.replace_all = false expect(list.replace_all).to eql(false) end it "coerces to a boolean" do list.replace_all = "goober" expect(list.replace_all).to eql(true) end end end
Version data entries
8 entries across 8 versions & 1 rubygems