public Method

Runner.copy_session_variables!(

Copy the instance variables from the current session instance into the test instance.

Source Code

# File action_controller/integration.rb, line 439
def copy_session_variables! #:nodoc:
  return unless @integration_session
  %w(controller response request).each do |var|
    instance_variable_set("@#{var}", @integration_session.send!(var))
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.