This project is archived and is in readonly mode.

#2768 ✓committed
Craig Smith

Tests should see all cookies, not just those that are created or changed in the controller

Reported by Craig Smith | June 5th, 2009 @ 04:16 PM | in 2.x

This test passes, even when the controller hasn't deleted the cookie. That's because cookies in a test case are only built up from the response and ignore the request.

def test_should_delete_the_cookie
@request.cookies['foo'] = 'bar get :do_something assert_nil cookies['foo'] end

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Tags

Referenced by

Pages