This project is archived and is in readonly mode.
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>
People watching this ticket
Referenced by
- 2733 [PATCH] Memoize cookies so they can be retrieved in the same response / request cycle This change introduced a regression which is captured her...