Sha256: e9fc01ccc0df37d426a6b5d9875b90b22c8c7a4baf4391910736c53f36a06e61

Contents?: true

Size: 1.07 KB

Versions: 60

Compression:

Stored size: 1.07 KB

Contents

require 'spec_helper'

describe NetSuite::Records::Subsidiary do
  let(:subsidiary) { described_class.new }

  it 'has all the right fields' do
    [ :name, :is_inactive, :show_subsidiary_name, :url, :tran_prefix, :attention,
      :addressee, :addr_phone, :addr1, :addr2, :addr3, :city, :state, :zip,
      :country, :addr_text, :override, :ship_addr, :return_addr, :return_address1,
      :return_address2, :return_city, :return_state, :return_country, :return_zip,
      :legal_name, :is_elimination, :allow_payroll, :email, :fax, :edition,
      :federal_id_number, :addr_language, :non_consol, :consol, :ship_address1,
      :ship_address2, :ship_city, :ship_state, :ship_country, :ship_zip,
      :state1_tax_number, :ssn_or_tin, :inbound_email ].each do |field|
      expect(subsidiary).to have_field(field)
    end
  end

  it 'has all the right record refs' do
    [ :check_layout, :inter_co_account, :parent, :logo, :page_logo,
      :fiscal_calendar, :tax_fiscal_calendar, :currency ].each do |record_ref|
      expect(subsidiary).to have_record_ref(record_ref)
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
netsuite-0.7.6 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.7.5 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.7.4 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.7.3 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.7.2 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.7.1 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.7.0 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.9 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.8 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.7 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.6 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.5 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.4 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.3 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.2 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.1 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.6.0 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.5.9 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.5.8 spec/netsuite/records/subsidiary_spec.rb
netsuite-0.5.7 spec/netsuite/records/subsidiary_spec.rb