class Rack::Test::Cookie

def expired?

Whether the cookie is currently expired.
def expired?
  expires && expires < Time.now
end