Sha256: e8a69977808b4f3997ab7df02ecda6a6654acb0ddd0a1ca094290f15700de10e

Contents?: true

Size: 591 Bytes

Versions: 15

Compression:

Stored size: 591 Bytes

Contents

require 'spec_helper'

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

  it 'has a items attribute' do
    expect(list.items).to be_kind_of(Array)
  end

  describe '#to_record' do
    before do
      list.items << NetSuite::Records::ReturnAuthorizationItem.new(
        :rate => 10
      )
    end

    it 'can represent itself as a SOAP record' do
      record =  {
        'tranCust:item' => [{
          'tranCust:rate' => 10
        }]
      }
      expect(list.to_record).to eql(record)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
netsuite-0.9.3 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.9.2 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.9.1 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.9.0 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.12 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.11 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.10 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.9 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.8 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.7 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.6 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.5 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.4 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.3 spec/netsuite/records/return_authorization_item_list_spec.rb
netsuite-0.8.2 spec/netsuite/records/return_authorization_item_list_spec.rb