class WebMock::HttpLibAdapters::ExconAdapter

def self.to_query(hash)

def self.to_query(hash)
  string = "".dup
  for key, values in hash
    if values.nil?
      string << key.to_s << '&'
    else
      for value in [*values]
        string << key.to_s << '=' << CGI.escape(value.to_s) << '&'
      end
    end
  end
  string.chop! # remove trailing '&'
end