Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
commit dd2eb1ea7c34eb6496feaf7e42100f37a8dae76b 1 parent ae9f258
@ryana ryana authored josh committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.