This project is archived and is in readonly mode.
Reset request_params in TestRequest#recycle!
Reported by Peter Marklund | March 17th, 2009 @ 02:47 PM | in 2.x
We used to do self.request_params = {} in TestRequest#recycle! but this has been taken out, I guess as part of the Rack rewrite. The consequence is that if you do multiple post requests within the same test block then the params hash is not cleared from one request to the next. This patch fixes the issue by clearing out the post params.
Comments and changes to this ticket
-
Pratik March 17th, 2009 @ 03:09 PM
- Tag set to 2.3.2, actioncontroller, actionpack, patch, test
- Assigned user set to josh
-
Repository March 24th, 2009 @ 03:54 PM
- State changed from new to resolved
(from [daffa5cbddace5a68ce09808a827805ef81ddb84]) Reset request_parameters in TestRequest#recycle! to avoid multiple posts clobbering each other [#2271 state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
-
Repository March 24th, 2009 @ 03:54 PM
(from [8fa4275a72c334fe945dada6113fa0153ca28c87]) Reset request_parameters in TestRequest#recycle! to avoid multiple posts clobbering each other [#2271 state:resolved]
Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co...
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
Referenced by
- 2271 Reset request_params in TestRequest#recycle! (from [daffa5cbddace5a68ce09808a827805ef81ddb84]) Reset r...
- 2271 Reset request_params in TestRequest#recycle! (from [8fa4275a72c334fe945dada6113fa0153ca28c87]) Reset r...