Sha256: 7fbcb69cda965a55f4093d864d448c8635b861b144436554c1afbc0e5f1b80c7

Contents?: true

Size: 363 Bytes

Versions: 17

Compression:

Stored size: 363 Bytes

Contents

require "spec_helper"

describe ApiClient::Base do

  it "delegates methods to scope" do
    scope = double
    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

17 entries across 17 versions & 1 rubygems

Version Path
api_client-0.5.18 spec/api_client/base/delegation_spec.rb
api_client-0.5.17 spec/api_client/base/delegation_spec.rb
api_client-0.5.16 spec/api_client/base/delegation_spec.rb
api_client-0.5.15 spec/api_client/base/delegation_spec.rb
api_client-0.5.14 spec/api_client/base/delegation_spec.rb
api_client-0.5.13 spec/api_client/base/delegation_spec.rb
api_client-0.5.12 spec/api_client/base/delegation_spec.rb
api_client-0.5.11 spec/api_client/base/delegation_spec.rb
api_client-0.5.9 spec/api_client/base/delegation_spec.rb
api_client-0.5.7 spec/api_client/base/delegation_spec.rb
api_client-0.5.6 spec/api_client/base/delegation_spec.rb
api_client-0.5.5 spec/api_client/base/delegation_spec.rb
api_client-0.5.4 spec/api_client/base/delegation_spec.rb
api_client-0.5.3 spec/api_client/base/delegation_spec.rb
api_client-0.5.2 spec/api_client/base/delegation_spec.rb
api_client-0.5.1 spec/api_client/base/delegation_spec.rb
api_client-0.5.0 spec/api_client/base/delegation_spec.rb