This project is archived and is in readonly mode.

#2271 ✓resolved
Peter Marklund

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

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

Pages