aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRyan Angilly <ryan@angilly.com>2009-03-24 10:51:45 -0500
committerJoshua Peek <josh@joshpeek.com>2009-03-24 10:54:19 -0500
commitdd2eb1ea7c34eb6496feaf7e42100f37a8dae76b (patch)
tree28e0396a20d83caaad0f6a73fb4439637bbe5534 /actionpack
parentae9f258e03c9fd5088da12c1c6cd216cc89a01f7 (diff)
downloadrails-dd2eb1ea7c34eb6496feaf7e42100f37a8dae76b.tar.gz
rails-dd2eb1ea7c34eb6496feaf7e42100f37a8dae76b.tar.bz2
rails-dd2eb1ea7c34eb6496feaf7e42100f37a8dae76b.zip
adding session_options initialization and test [#2303 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/test_process.rb1
-rw-r--r--actionpack/test/controller/test_test.rb4
2 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index 94c57667ec..b2d1341573 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -13,6 +13,7 @@ module ActionController #:nodoc:
@query_parameters = {}
@session = TestSession.new
+ @session_options ||= {}
initialize_default_values
initialize_containers
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb
index 3924b282d4..6bf8a10f59 100644
--- a/actionpack/test/controller/test_test.rb
+++ b/actionpack/test/controller/test_test.rb
@@ -130,6 +130,10 @@ XML
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