Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use session= writer methods

  • Loading branch information...
commit f7d7dc5aa8a5facc357ed291819db23e3f3df9b6 1 parent 8aaed3d
@jeremy jeremy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/testing/process.rb
View
4 actionpack/lib/action_controller/testing/process.rb
@@ -14,8 +14,8 @@ def initialize(env = {})
super(Rack::MockRequest.env_for("/").merge(env))
@query_parameters = {}
- @env['rack.session'] = TestSession.new
- @env['rack.session.options'] = TestSession::DEFAULT_OPTIONS.merge(:id => ActiveSupport::SecureRandom.hex(16))
+ self.session = TestSession.new
+ self.session_options = TestSession::DEFAULT_OPTIONS.merge(:id => ActiveSupport::SecureRandom.hex(16))
initialize_default_values
initialize_containers
Please sign in to comment.
Something went wrong with that request. Please try again.