title: How do you test the expiration date on a cookie?
body: <p>How can I access the expiration time on a cookie in a functional test?  For example:</p>
  
  <pre><code>assert cookies.signed[:cart_id].expires &gt; Time.now
  </code></pre>
  
  <p>That will throw an error because <code>cookies[:cart_id]</code> just returns the integer.</p>