Module: ActionController::Testing::Functional

Included in:
Metal
Defined in:
lib/action_controller/metal/testing.rb

Overview

Behavior specific to functional tests

Instance Method Summary collapse

Instance Method Details

#clear_instance_variables_between_requestsObject

:nodoc:



9
10
11
12
13
14
15
16
# File 'lib/action_controller/metal/testing.rb', line 9

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

#recycle!Object



18
19
20
21
22
# File 'lib/action_controller/metal/testing.rb', line 18

def recycle!
  @_url_options = nil
  self.formats = nil
  self.params = nil
end