mirror of
https://github.com/lostisland/faraday.git
synced 2025-11-22 00:08:56 -05:00
21 lines
549 B
Ruby
21 lines
549 B
Ruby
require File.expand_path('../integration', __FILE__)
|
|
|
|
module Adapters
|
|
class TyphoeusTest < Faraday::TestCase
|
|
|
|
def adapter() :typhoeus end
|
|
|
|
Integration.apply(self, :Parallel) do
|
|
# https://github.com/dbalatero/typhoeus/issues/75
|
|
undef :test_GET_with_body
|
|
|
|
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 unless defined? RUBY_ENGINE and 'jruby' == RUBY_ENGINE
|
|
end
|
|
|