module ActionController::Testing::Functional

def clear_instance_variables_between_requests

:nodoc:
Behavior specific to functional tests
def clear_instance_variables_between_requests
  if defined?(@_ivars)
    new_ivars = instance_variables - @_ivars
    new_ivars.each { |ivar| remove_instance_variable(ivar) }
  end
  @_ivars = instance_variables
end