Sha256: 13fe7da858c39bc2da292e8f7da873064ae62dde393079387724a6f2f63cc523

Contents?: true

Size: 1021 Bytes

Versions: 1

Compression:

Stored size: 1021 Bytes

Contents

require 'spec_helper'

describe NetSuite::Records::EstimateItem do
  let(:item) { NetSuite::Records::EstimateItem.new }

  it 'has all the right fields' do
    [
     :amount, :cost_estimate, :cost_estimate_type,
     :defer_rev_rec, :description, 
     :is_taxable, :line, :quantity,
     :rate, :tax_rate1
    ].each do |field|
      expect(item).to have_field(field)
    end
  end

  it 'has all the right record refs' do
    [
      :department,
      :item,
      :job,
      :klass,
      :location,
      :price,
      :tax_code,
      :units,
    ].each do |record_ref|
      expect(item).to have_record_ref(record_ref)
    end
  end

  describe '#options' do
    it 'can be set from attributes'
    it 'can be set from a CustomFieldList object'
  end

  describe '#inventory_detail' do
    it 'can be set from attributes'
    it 'can be set from an InventoryDetail object'
  end

  describe '#custom_field_list' do
    it 'can be set from attributes'
    it 'can be set from a CustomFieldList object'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netsuite-0.9.3 spec/netsuite/records/estimate_item_spec.rb