Peter Marklund
2009-Mar-17  15:03 UTC
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---