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_requests ⇒ Object
:nodoc:
7 8 9 10 11 12 13 14 |
# File 'lib/action_controller/metal/testing.rb', line 7 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
16 17 18 19 20 |
# File 'lib/action_controller/metal/testing.rb', line 16 def recycle! @_url_options = nil self.formats = nil self.params = nil end |