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:
parent
3fc9a67c04
commit
c7e09a8fb2
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue