faraday/test/adapters/httpclient_test.rb
Alexander Pepper c877521697 httpclient: Enable gzip compression.
Motivation: httpclient support gzip compression since late 2010 (see https://github.com/nahi/httpclient/issues/42 ).
2015-01-14 15:27:00 +01:00

24 lines
593 B
Ruby

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
Integration.apply(self, :Compression)
end
end