diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-13 17:23:07 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-13 17:26:27 -0700 |
commit | c7e09a8fb234d80f06fcd70b9263e28e42c4378b (patch) | |
tree | 9313689dec31cfd100335b3ef1c03559e9b338f1 | |
parent | 3fc9a67c04bade858e7ac7eb8cd94eec6a63ec27 (diff) | |
download | rails-c7e09a8fb234d80f06fcd70b9263e28e42c4378b.tar.gz rails-c7e09a8fb234d80f06fcd70b9263e28e42c4378b.tar.bz2 rails-c7e09a8fb234d80f06fcd70b9263e28e42c4378b.zip |
TestRequest#recycle! uses unmemoize_all to reset cached request method, accepts, etc.
-rw-r--r-- | actionpack/lib/action_controller/test_process.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 636e1c38b3..0c705207e3 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -120,13 +120,13 @@ module ActionController #:nodoc: end end @parameters = nil # reset TestRequest#parameters to use the new path_parameters - end - + end + def recycle! self.request_parameters = {} self.query_parameters = {} self.path_parameters = {} - @request_method, @accepts, @content_type = nil, nil, nil + unmemoize_all end private |