Sha256: fbc04b4f16c0e752ee4def4793cbc1a8a4c13f4c8f174986990653b64dd9a888

Contents?: true

Size: 360 Bytes

Versions: 15

Compression:

Stored size: 360 Bytes

Contents

require "spec_helper"

describe ApiClient::Base do

  it "delegates methods to scope" do
    scope = mock
    ApiClient::Base.stub(:scope).and_return(scope)
    [:fetch, :get, :put, :post, :delete, :headers, :endpoint, :options, :adapter, :params, :raw].each do |method|
      scope.should_receive(method)
      ApiClient::Base.send(method)
    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
api_client-0.4.3 spec/api_client/base/delegation_spec.rb
api_client-0.4.2 spec/api_client/base/delegation_spec.rb
api_client-0.4.1 spec/api_client/base/delegation_spec.rb
api_client-0.3.3 spec/api_client/base/delegation_spec.rb
api_client-0.4.0 spec/api_client/base/delegation_spec.rb
api_client-0.3.2 spec/api_client/base/delegation_spec.rb
api_client-0.3.1 spec/api_client/base/delegation_spec.rb
api_client-0.3.0 spec/api_client/base/delegation_spec.rb
api_client-0.2.0 spec/api_client/base/delegation_spec.rb
api_client-0.1.9 spec/api_client/base/delegation_spec.rb
api_client-0.1.8 spec/api_client/base/delegation_spec.rb
api_client-0.1.7 spec/api_client/base/delegation_spec.rb
api_client-0.1.6 spec/api_client/base/delegation_spec.rb
api_client-0.1.5 spec/api_client/base/delegation_spec.rb
api_client-0.1.4 spec/api_client/base/delegation_spec.rb