Skip to content

Commit dd2eb1e

Browse files
ryanajosh
authored andcommitted
adding session_options initialization and test [rails#2303 state:resolved]
Signed-off-by: Joshua Peek <[email protected]>
1 parent ae9f258 commit dd2eb1e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

actionpack/lib/action_controller/test_process.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def initialize(env = {})
1313

1414
@query_parameters = {}
1515
@session = TestSession.new
16+
@session_options ||= {}
1617

1718
initialize_default_values
1819
initialize_containers

actionpack/test/controller/test_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ def teardown
130130
ActionController::Routing::Routes.reload
131131
end
132132

133+
def test_test_request_has_session_options_initialized
134+
assert @request.session_options
135+
end
136+
133137
def test_raw_post_handling
134138
params = {:page => {:name => 'page name'}, 'some key' => 123}
135139
post :render_raw_post, params.dup

0 commit comments

Comments
 (0)