def should_have_query(params)
      query = URI.parse(current_url).query
      actual_params = query ? CGI.parse(query) : {}
      expected_params = {}
      params.each_pair do |k,v|
        expected_params[k] = v.split(',')
      end
      if actual_params != expected_params
        raise Kelp::Unexpected,
          "Expected query params: '#{expected_params.inspect}'" + \
          "\nActual query params: '#{actual_params.inspect}'"
      end
    end
def should_have_query(params)
      query = URI.parse(current_url).query
      actual_params = query ? CGI.parse(query) : {}
      expected_params = {}
      params.each_pair do |k,v|
        expected_params[k] = v.split(',')
      end
      if actual_params != expected_params
        raise Kelp::Unexpected,
          "Expected query params: '#{expected_params.inspect}'" + \
          "\nActual query params: '#{actual_params.inspect}'"
      end
    end
Verify that the current page has the given query parameters.

 @param [Hash] params
   Key => value parameters, as they would appear in the URL

 @raise [Kelp::Unexpected]
   If actual query parameters don't match expected parameters

 @since 0.1.9