Sha256: 828261b38cd6d0bc50817a0c0a33963651bd0d14230dd260cf1933b59d63d61c

Contents?: true

Size: 662 Bytes

Versions: 47

Compression:

Stored size: 662 Bytes

Contents

require 'spec_helper'

describe NetSuite::Support::Requests do
  let(:instance) do
    obj = Object.new
    obj.extend(NetSuite::Support::Requests)
    obj
  end

  describe '#call' do
    before do
      instance.stub(:request)
      instance.stub(:success?)
      instance.stub(:response_body)
    end

    it 'calls #request' do
      instance.should_receive(:request)
      instance.call
    end

    it 'calls #build_response' do
      instance.should_receive(:build_response)
      instance.call
    end

    it 'returns a NetSuite::Response object' do
      response = instance.call
      response.should be_kind_of(NetSuite::Response)
    end
  end

end

Version data entries

47 entries across 47 versions & 1 rubygems

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