diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-02-27 06:36:25 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-02-27 06:36:25 +0000 |
commit | df7ca38d7dc2419a564c223071b92c5570cf7a58 (patch) | |
tree | 79034a158bfe198450149c69c6bf82b1af0d6ec5 /actionpack/test/controller/session_management_test.rb | |
parent | 88876163f9fa830a846e9b97a8347248837b6613 (diff) | |
download | rails-df7ca38d7dc2419a564c223071b92c5570cf7a58.tar.gz rails-df7ca38d7dc2419a564c223071b92c5570cf7a58.tar.bz2 rails-df7ca38d7dc2419a564c223071b92c5570cf7a58.zip |
session_enabled? works with session :off. Closes #6680.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/session_management_test.rb')
-rw-r--r-- | actionpack/test/controller/session_management_test.rb | 11 |
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 |