Skip to content

Commit

Permalink
adding session_options initialization and test [#2303 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information
ryana authored and josh committed Mar 24, 2009
1 parent 6a1267a commit 6516119
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions actionpack/lib/action_controller/test_process.rb
Expand Up @@ -13,6 +13,7 @@ def initialize(env = {})

@query_parameters = {}
@session = TestSession.new
@session_options ||= {}

initialize_default_values
initialize_containers
Expand Down
4 changes: 4 additions & 0 deletions actionpack/test/controller/test_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 6516119

Please sign in to comment.