Sha256: 51f93d7bccb03503ce1c43eab0534111659fe37c0bc9a4dc5b710b3924e9e8b5

Contents?: true

Size: 767 Bytes

Versions: 60

Compression:

Stored size: 767 Bytes

Contents

require 'spec_helper'

describe NetSuite::Records::BillingScheduleRecurrenceList do
  let(:list) { NetSuite::Records::BillingScheduleRecurrenceList.new }
  let(:recurrence) { NetSuite::Records::BillingScheduleRecurrence.new }

  it 'can have recurrences be added to it' do
    list.recurrences << recurrence
    recurrence_list = list.recurrences
    expect(recurrence_list).to be_kind_of(Array)
    expect(recurrence_list.length).to eql(1)
    recurrence_list.each { |i| expect(i).to be_kind_of(NetSuite::Records::BillingScheduleRecurrence) }
  end

  describe '#to_record' do
    it 'can represent itself as a SOAP record' do
      record = {
        'listAcct:billingScheduleRecurrence' => []
      }
      expect(list.to_record).to eql(record)
    end
  end

end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
netsuite-0.9.3 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.9.2 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.9.1 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.9.0 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.12 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.11 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.10 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.9 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.8 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.7 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.6 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.5 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.4 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.3 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.2 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.1 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.8.0 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.7.9 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.7.8 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb
netsuite-0.7.7 spec/netsuite/records/billing_schedule_recurrence_list_spec.rb