aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/session_management_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/session_management_test.rb')
-rw-r--r--actionpack/test/controller/session_management_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/test/controller/session_management_test.rb b/actionpack/test/controller/session_management_test.rb
index 6e100c0c37..63917565ef 100644
--- a/actionpack/test/controller/session_management_test.rb
+++ b/actionpack/test/controller/session_management_test.rb
@@ -142,4 +142,15 @@ class SessionManagementTest < Test::Unit::TestCase
get :tell
assert_equal "does not have cached associations", @response.body
end
+
+ def test_session_is_enabled
+ @controller = TestController.new
+ get :show
+ assert_nothing_raised do
+ assert_equal false, @controller.session_enabled?
+ end
+
+ get :tell
+ assert @controller.session_enabled?
+ end
end