From 82402e6583dfd749ac128f7db65f567c03beaf50 Mon Sep 17 00:00:00 2001 From: Brian John Date: Thu, 12 Mar 2015 09:52:38 -0500 Subject: Use request.session.id instead of request.session_options[:id] As of the upgrade to Rack 1.5, request.session_options[:id] is no longer populated. Reflect this change in the tests by using request.session.id instead. Related change in Rack: https://github.com/rack/rack/commit/83a270d6 --- actionpack/test/controller/request/test_request_test.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/request/test_request_test.rb b/actionpack/test/controller/request/test_request_test.rb index e624f11773..77a2f68b1c 100644 --- a/actionpack/test/controller/request/test_request_test.rb +++ b/actionpack/test/controller/request/test_request_test.rb @@ -24,12 +24,4 @@ class ActionController::TestRequestTest < ActiveSupport::TestCase end end - def test_session_id_exists_by_default - assert_not_nil(@request.session_options[:id]) - end - - def test_session_id_different_on_each_call - assert_not_equal(@request.session_options[:id], ActionController::TestRequest.new.session_options[:id]) - end - end -- cgit v1.2.3