1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

TestRequest#recycle! uses unmemoize_all to reset cached request method, accepts, etc.

This commit is contained in:
Jeremy Kemper 2008-08-13 17:23:07 -07:00
parent 3fc9a67c04
commit c7e09a8fb2

View file

@ -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