This project is archived and is in readonly mode.

#3032 ✓duplicate
Bryan Helmkamp

Regression on 2.3 branch: Can't delete cookies from inside a test

Reported by Bryan Helmkamp | August 10th, 2009 @ 11:15 PM

This commit introduced a regression: http://github.com/brynary/rails/commit/143c55d325388aa2384de8f137cf...

This test (included in my branch) demonstrates the behavior change:

def test_cookies_are_clearable_from_test
  get :authenticate
  cookies.clear
  response = get :count
  assert_equal "0", response.body
end

With 143c55d3 applied, the "count" action sees 1 cookie instead of 0. The following branch reverts the changeset and adds a test for the behavior that broke: http://github.com/brynary/rails/commits/cookie-regression

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>

Referenced by

Pages