Method: WebMock::HttpLibAdapters::ExconAdapter.new_excon_connection

Defined in:
lib/webmock/http_lib_adapters/excon_adapter.rb

.new_excon_connection(params) ⇒ Object



74
75
76
77
78
79
# File 'lib/webmock/http_lib_adapters/excon_adapter.rb', line 74

def self.new_excon_connection(params)
  # Ensure the connection is constructed with the exact same args
  # that the orginal connection was constructed with.
  args = params.fetch(:__construction_args)
  ::Excon::Connection.new(connection_params_from args.merge(mock: false))
end