class WebMock::HttpLibAdapters::ExconAdapter

def self.new_excon_connection(params)

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