This project is archived and is in readonly mode.
response.cookies empty in integration test
-
José Valim
- Assigned user set to josh
-
josh
- Assigned user cleared.
Could you post some more info so we can try to reproduce?
This maybe a rack-test bug so you want to contact Bryan Helmkamp.
-
Don Werve
- Assigned user set to josh
In the controller:
def dosomething cookies['imacookie'] = 'foo' cookies.permanent['imapermanentcookie'] = 'bar' endIn the integration test:
post('/controller/dosomething')Inspecting 'response.cookies' in the integration test after this shows that 'imacookie' gets set, but 'imapermanentcookie' does not. If I look at the full headers ('response.headers'), then I see 'imapermanentcookie'.
Rack-test bug?