Skip to content
Browse files

adding session_options initialization and test [#2303 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent ae9f258 commit dd2eb1ea7c34eb6496feaf7e42100f37a8dae76b @ryana ryana committed with josh Mar 24, 2009
Showing with 5 additions and 0 deletions.
  1. +1 −0 actionpack/lib/action_controller/test_process.rb
  2. +4 −0 actionpack/test/controller/test_test.rb
View
1 actionpack/lib/action_controller/test_process.rb
@@ -13,6 +13,7 @@ def initialize(env = {})
@query_parameters = {}
@session = TestSession.new
+ @session_options ||= {}
initialize_default_values
initialize_containers
View
4 actionpack/test/controller/test_test.rb
@@ -130,6 +130,10 @@ def teardown
ActionController::Routing::Routes.reload
end
+ def test_test_request_has_session_options_initialized
+ assert @request.session_options
+ end
+
def test_raw_post_handling
params = {:page => {:name => 'page name'}, 'some key' => 123}
post :render_raw_post, params.dup

0 comments on commit dd2eb1e

Please sign in to comment.
Something went wrong with that request. Please try again.