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

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:


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


Peter Marklund