class Rack::Test::Cookie

def replaces?(other)

Wether the given cookie can replace the current cookie in the cookie jar.
def replaces?(other)
  [name.downcase, domain, path] == [other.name.downcase, other.domain, other.path]
end