Sha256: 7e8bf068629621c2f5290b488a50c9ce090aa2f07695a3b232f60c2be4f289f2
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
require File.expand_path('../integration', __FILE__) module Adapters class EMSynchronyTest < Faraday::TestCase def adapter() :em_synchrony end Integration.apply(self, :Parallel) do # https://github.com/eventmachine/eventmachine/pull/289 undef :test_timeout def test_binds_local_socket host = '1.2.3.4' conn = create_connection :request => { :bind => { :host => host } } #put conn.get('/who-am-i').body assert_equal host, conn.options[:bind][:host] end end end unless RUBY_VERSION < '1.9' or (defined? RUBY_ENGINE and 'jruby' == RUBY_ENGINE) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avdi-faraday-0.8.1 | test/adapters/em_synchrony_test.rb |