TestRequest#recycle! and clearing out params between subsequent posts in tests

Hi! Has anyone else run into the issue of the params hash not being reset between subsequent post requests within the same test method/block? I tracked the issue down to the TestRequest#recycle! method no longer doing self.request_parameters = {}. I created a patch that fixes the issue, see:

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2271-reset-request_params-in-testrequestrecycle#ticket-2271-1

I am not familiar enough with Rack and Rails internals to judge if my solution is appropriate but it works.

Thanks!

Peter Marklund http://marklunds.com