Sha256: da8d4b4a1f5558f196df79e04a264af4b187e6bcb37190cb1866c62844f98751

Contents?: true

Size: 423 Bytes

Versions: 47

Compression:

Stored size: 423 Bytes

Contents

require "spec_helper"

describe ApiClient::Base do

  describe '.connection' do

    it "registers a new connection_hook" do
      ConnectionHookTestProc = lambda {}
      class ConnectionHookTest < ApiClient::Base
        connection &ConnectionHookTestProc
      end
      ConnectionHookTest.connection_hooks.size.should == 1
      ConnectionHookTest.connection_hooks.should == [ConnectionHookTestProc]
    end

  end

end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
api_client-0.5.7 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.6 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.5 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.4 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.3 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.2 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.1 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.0 spec/api_client/base/connection_hook_spec.rb
api_client-0.4.3 spec/api_client/base/connection_hook_spec.rb
api_client-0.4.2 spec/api_client/base/connection_hook_spec.rb
api_client-0.4.1 spec/api_client/base/connection_hook_spec.rb
api_client-0.3.3 spec/api_client/base/connection_hook_spec.rb
api_client-0.4.0 spec/api_client/base/connection_hook_spec.rb
api_client-0.3.2 spec/api_client/base/connection_hook_spec.rb
api_client-0.3.1 spec/api_client/base/connection_hook_spec.rb
api_client-0.3.0 spec/api_client/base/connection_hook_spec.rb
api_client-0.2.0 spec/api_client/base/connection_hook_spec.rb
api_client-0.1.9 spec/api_client/base/connection_hook_spec.rb
api_client-0.1.8 spec/api_client/base/connection_hook_spec.rb
api_client-0.1.7 spec/api_client/base/connection_hook_spec.rb