Sha256: ea1000ecad656b18500953f68fd2b30cd01d9f1ba40be69cdcedddc6bdba945c
Contents?: true
Size: 747 Bytes
Versions: 47
Compression:
Stored size: 747 Bytes
Contents
require 'spec_helper' module Foo module Bar class Baz include NetSuite::Support::Fields include NetSuite::Support::Records def attributes { :source => 'Google', :total => 100.0 } end end end end describe NetSuite::Support::Records do let(:instance) { Foo::Bar::Baz.new } describe '#record_type' do it 'returns a hash of attributes to be used in a SOAP request' do instance.to_record.should eql({ 'platformCore:source' => 'Google', 'platformCore:total' => 100.0 }) end end describe '#record_type' do it 'returns a string of the record type to be used in a SOAP request' do instance.record_type.should eql('platformCore:Baz') end end end
Version data entries
47 entries across 47 versions & 1 rubygems