title: How can I test cookies in rails?
body: <p>I've got file /rspec/support/utilities.rb with method:</p>
  
  <pre><code>def sign_in(user)
      remember_token = User.new_token
      cookies.signed["remember_token"] = remember_token
      user.update_attribute(:remember_token, User.encrypt(remember_token))
  end
  </code></pre>
  
  <p>But when I run tests, I get this error:</p>
  
  <pre><code>undefined method `signed' for Rack::Test::CookieJar
  </code></pre>
  
  <p>So, I guess there is no methods like "signed" and "permanent" in this class, but how can I make tests for cookies then?</p>