class Rack::Test::CookieJar

def [](name)

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