method
recycle!
recycle!()
public
Hide source
# File actionpack/lib/action_controller/test_case.rb, line 177 def recycle! write_cookies! @env.delete('HTTP_COOKIE') if @cookies.blank? @env.delete('action_dispatch.cookies') @cookies = nil @formats = nil @env.delete_if { |k, v| k =~ /^(action_dispatch|rack)\.request/ } @env.delete_if { |k, v| k =~ /^action_dispatch\.rescue/ } @symbolized_path_params = nil @method = @request_method = nil @fullpath = @ip = @remote_ip = @protocol = nil @env['action_dispatch.request.query_parameters'] = {} end