Sha256: eb35f405f204ef0dc3a6aa4eecf0e213868ed87290d33528d99239488108e8d8

Contents?: true

Size: 803 Bytes

Versions: 1

Compression:

Stored size: 803 Bytes

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

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netsuite-0.0.2 spec/netsuite_spec.rb