Sha256: 6e759a37f9591ffd58a509c5dd61003c00f38206d730a2c6e47022c674181490

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

require 'spec_helper'

describe NetSuite::Actions::Get do

  before do
    savon.expects(:get).with({
      'platformMsgs:baseRef' => {},
      :attributes! => {
        'platformMsgs:baseRef' => {
          :internalId => 1,
          :type       => 'customer',
          'xsi:type'  => 'platformCore:RecordRef'
        }
      }
    }).returns(:get_customer)
  end

  it 'makes a valid request to the NetSuite API' do
    NetSuite::Actions::Get.call(1)
  end

  it 'returns a valid Response object' do
    response = NetSuite::Actions::Get.call(1)
    response.should be_kind_of(NetSuite::Response)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netsuite-0.0.7 spec/netsuite/actions/get_spec.rb
netsuite-0.0.6 spec/netsuite/actions/get_spec.rb
netsuite-0.0.5 spec/netsuite/actions/get_spec.rb
netsuite-0.0.4 spec/netsuite/actions/get_spec.rb
netsuite-0.0.3 spec/netsuite/actions/get_spec.rb