Sha256: 3e68df5d6e5bb5765112fc35fe8c3552788a4d1787466b58ff62c401e3e9c4c2

Contents?: true

Size: 550 Bytes

Versions: 6

Compression:

Stored size: 550 Bytes

Contents

require File.expand_path('../integration', __FILE__)

module Adapters
  class HttpclientTest < Faraday::TestCase

    def adapter() :httpclient end

    Integration.apply(self, :NonParallel) do
      def setup
        require 'httpclient' unless defined?(HTTPClient)
        HTTPClient::NO_PROXY_HOSTS.delete('localhost')
      end

      def test_binds_local_socket
        host = '1.2.3.4'
        conn = create_connection :request => { :bind => { :host => host } }
        assert_equal host, conn.options[:bind][:host]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
faraday-0.9.1 test/adapters/httpclient_test.rb
whos_dated_who-0.1.0 vendor/bundle/gems/faraday-0.9.0/test/adapters/httpclient_test.rb
whos_dated_who-0.0.1 vendor/bundle/gems/faraday-0.9.0/test/adapters/httpclient_test.rb
faraday-0.9.0 test/adapters/httpclient_test.rb
faraday-0.9.0.rc7 test/adapters/httpclient_test.rb
faraday-0.9.0.rc6 test/adapters/httpclient_test.rb