Sha256: f58ed54f8c3b2565d190eddfb3fbc4f25ade581955459449cae6692be244cd19

Contents?: true

Size: 371 Bytes

Versions: 11

Compression:

Stored size: 371 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, :patch, :delete, :headers, :endpoint, :options, :adapter, :params, :raw].each do |method|
      scope.should_receive(method)
      ApiClient::Base.send(method)
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
api_client-0.6.0-java spec/api_client/base/delegation_spec.rb
api_client-0.6.0 spec/api_client/base/delegation_spec.rb
api_client-0.5.26-java spec/api_client/base/delegation_spec.rb
api_client-0.5.26 spec/api_client/base/delegation_spec.rb
api_client-0.5.25-java spec/api_client/base/delegation_spec.rb
api_client-0.5.25 spec/api_client/base/delegation_spec.rb
api_client-0.5.24 spec/api_client/base/delegation_spec.rb
api_client-0.5.22 spec/api_client/base/delegation_spec.rb
api_client-0.5.21 spec/api_client/base/delegation_spec.rb
api_client-0.5.20 spec/api_client/base/delegation_spec.rb
api_client-0.5.19 spec/api_client/base/delegation_spec.rb