Sha256: 57ef5b41be526b09df179d4e450456b07c2a4cf3756411aed7146969d0555a9e

Contents?: true

Size: 590 Bytes

Versions: 34

Compression:

Stored size: 590 Bytes

Contents

require 'spec_helper'

describe NetSuite::Records::CustomerRefundApplyList do
  let(:list) { NetSuite::Records::CustomerRefundApplyList.new }

  it 'has a applies attribute' do
    list.applies.should be_kind_of(Array)
  end

  describe '#to_record' do
    before do
      list.applies << NetSuite::Records::CustomerRefundApply.new(:amount => 10)
    end

    it 'can represent itself as a SOAP record' do
      record = [
        {
          'tranCust:apply' => {
            'tranCust:amount' => 10
          }
        }
      ]
      list.to_record.should eql(record)
    end
  end

end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
netsuite-0.3.0 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.2.6 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.2.5 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.2.4 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.2.3 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.2.2 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.2.1 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.2.0 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.1.0 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.50 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.49 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.48 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.47 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.45 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.44 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.43 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.42 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.41 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.40 spec/netsuite/records/customer_refund_apply_list_spec.rb
netsuite-0.0.39 spec/netsuite/records/customer_refund_apply_list_spec.rb