Sha256: 0564cdc006828bd4ac45e96820aa5d5c32a3b2d4166685e4b4ca3f8db9beef60

Contents?: true

Size: 1.09 KB

Versions: 55

Compression:

Stored size: 1.09 KB

Contents

require 'spec_helper'

describe NetSuite do
  let(:config) { NetSuite::Configuration }

  before do
    config.reset!
  end

  describe '#configure' do
    it 'allows the Configuration #email instance method to be called with instance eval' do
      NetSuite.configure do
        email 'me@example.com'
      end
      config.email.should eql('me@example.com')
    end

    it 'allows the Configuration #password instance method to be called with instance eval' do
      NetSuite.configure do
        password 'myPassword'
      end
      config.password.should eql('myPassword')
    end

    it 'allows the Configuration #account instance method to be called with instance eval' do
      NetSuite.configure do
        account 1234
      end
      config.account.should eql(1234)
    end

    it 'allows the Configuration #wsdl instance method to be called with instance_eval' do
      NetSuite.configure do
        wsdl 'https://system.sandbox.netsuite.com/wsdl/v2011_2_0/netsuite.wsdl'
      end
      config.wsdl.should eql('https://system.sandbox.netsuite.com/wsdl/v2011_2_0/netsuite.wsdl')
    end

  end

end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
netsuite-0.3.0 spec/netsuite_spec.rb
netsuite-0.2.6 spec/netsuite_spec.rb
netsuite-0.2.5 spec/netsuite_spec.rb
netsuite-0.2.4 spec/netsuite_spec.rb
netsuite-0.2.3 spec/netsuite_spec.rb
netsuite-0.2.2 spec/netsuite_spec.rb
netsuite-0.2.1 spec/netsuite_spec.rb
netsuite-0.2.0 spec/netsuite_spec.rb
netsuite-0.1.0 spec/netsuite_spec.rb
netsuite-0.0.50 spec/netsuite_spec.rb
netsuite-0.0.49 spec/netsuite_spec.rb
netsuite-0.0.48 spec/netsuite_spec.rb
netsuite-0.0.47 spec/netsuite_spec.rb
netsuite-0.0.45 spec/netsuite_spec.rb
netsuite-0.0.44 spec/netsuite_spec.rb
netsuite-0.0.43 spec/netsuite_spec.rb
netsuite-0.0.42 spec/netsuite_spec.rb
netsuite-0.0.41 spec/netsuite_spec.rb
netsuite-0.0.40 spec/netsuite_spec.rb
netsuite-0.0.39 spec/netsuite_spec.rb