Sha256: 6755f09c6057f927deb654c367eb1894ae1914387329672b2d498758c0ba01c6

Contents?: true

Size: 753 Bytes

Versions: 60

Compression:

Stored size: 753 Bytes

Contents

require 'spec_helper'

describe NetSuite::Records::BillingScheduleMilestoneList do
  let(:list) { NetSuite::Records::BillingScheduleMilestoneList.new }
  let(:milestone) { NetSuite::Records::BillingScheduleMilestone.new }

  it 'can have milestones be added to it' do
    list.milestones << milestone
    milestone_list = list.milestones
    expect(milestone_list).to be_kind_of(Array)
    expect(milestone_list.length).to eql(1)
    milestone_list.each { |i| expect(i).to be_kind_of(NetSuite::Records::BillingScheduleMilestone) }
  end

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

end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
netsuite-0.5.6 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.5.5 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.5.4 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.5.3 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.5.2 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.5.1 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.5.0 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.9 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.8 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.7 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.6 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.5 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.4 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.3 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.2 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.1 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.4.0 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.3.3 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.3.2 spec/netsuite/records/billing_schedule_milestone_list_spec.rb
netsuite-0.3.1 spec/netsuite/records/billing_schedule_milestone_list_spec.rb