Sha256: e77f8a89d12429a49033e525f9222ff3ebd00bf9231c30267d4c3b743a7f03e1

Contents?: true

Size: 865 Bytes

Versions: 9

Compression:

Stored size: 865 Bytes

Contents

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

module Adapters
  class ExconTest < Faraday::TestCase

    def adapter() :excon end

    Integration.apply(self, :NonParallel) do
      # https://github.com/geemus/excon/issues/126 ?
      undef :test_timeout if ssl_mode?

      # Excon lets OpenSSL::SSL::SSLError be raised without any way to
      # distinguish whether it happened because of a 407 proxy response
      undef :test_proxy_auth_fail if ssl_mode?

      # https://github.com/geemus/excon/issues/358
      undef :test_connection_error if RUBY_VERSION >= '2.1.0'
    end

    def test_custom_adapter_config
      url = URI('https://example.com:1234')

      adapter = Faraday::Adapter::Excon.new nil, debug_request: true

      conn = adapter.create_connection({url: url}, {})

      assert_equal true, conn.data[:debug_request]
    end
  end
end

Version data entries

9 entries across 8 versions & 2 rubygems

Version Path
faraday-0.17.6 test/adapters/excon_test.rb
faraday-0.17.5 test/adapters/excon_test.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/faraday-0.17.3/test/adapters/excon_test.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/faraday-0.17.4/test/adapters/excon_test.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/faraday-0.17.3/test/adapters/excon_test.rb
faraday-0.17.4 test/adapters/excon_test.rb
faraday-0.17.3 test/adapters/excon_test.rb
tdiary-5.1.0 vendor/bundle/gems/faraday-0.17.1/test/adapters/excon_test.rb
faraday-0.17.1 test/adapters/excon_test.rb