Permalink
Browse files

Use session= writer methods

  • Loading branch information...
1 parent 8aaed3d commit f7d7dc5aa8a5facc357ed291819db23e3f3df9b6 @jeremy jeremy committed Apr 27, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit f7d7dc5

Please sign in to comment.