This project is archived and is in readonly mode.
[PATCH] Memoize cookies so they can be retrieved in the same response / request cycle
-
josh
- Milestone cleared.
- State changed from new to open
- Assigned user set to josh
-
Repository
- State changed from open to resolved
(from [0349278f3da9f7f532330cf295eed35ede3bae66]) Memoize cookies so that updates to cookies are available in the current request. [#2733 [PATCH] Memoize cookies so they can be retrieved in the same response / reque... state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com
http://github.com/rails/rails/commit/0349278f3da9f7f532330cf295eed3... -
Repository
(from [143c55d325388aa2384de8f137cfb61c09912208]) Memoize cookies so that updates to cookies are available in the current request. [#2733 [PATCH] Memoize cookies so they can be retrieved in the same response / reque... state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com
Conflicts:
actionpack/test/controller/cookie_test.rbhttp://github.com/rails/rails/commit/143c55d325388aa2384de8f137cfb6...
-
Bryan Helmkamp
This change introduced a regression which is captured here: #3032 Regression on 2.3 branch: Can't delete cookies from inside a test
-
Jeremy Kemper
- State changed from resolved to open
- Milestone set to 2.3.4
Bryan ran into a regression with this.
-
John Pignata
Bryan -- I'm not sure that this actually did introduce a regression. Your test seems to work when I call cookies.clear against the controller which is how the other tests interact with it
def test_cookies_are_clearable_from_test get :authenticate @controller.send(:cookies).clear response = get :count assert_equal "0", response.body end -
josh
- State changed from open to resolved
Reresolving.
We should update the functional test cookie accessor to behave more like the integration one.
