class Rack::Test::CookieJar

def get_cookie(name)

no such cookie exists.
Return the first cookie with the given name, or nil if
def get_cookie(name)
  @cookies.each do |cookie|
    return cookie if cookie.name == name
  end
  nil
end