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.6.0-java spec/api_client/base/connection_hook_spec.rb
api_client-0.6.0 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.26-java spec/api_client/base/connection_hook_spec.rb
api_client-0.5.26 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.25-java spec/api_client/base/connection_hook_spec.rb
api_client-0.5.25 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.24 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.22 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.21 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.20 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.19 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.18 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.17 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.16 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.15 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.14 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.13 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.12 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.11 spec/api_client/base/connection_hook_spec.rb
api_client-0.5.9 spec/api_client/base/connection_hook_spec.rb