diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-13 20:44:16 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-03-13 20:44:16 +0000 |
commit | 5219aa90083a76832c6691bdef6fe3dc51a69281 (patch) | |
tree | ab4086a7ca090c2619b8c0c6e4467df4e5aff2bd /actionpack/test | |
parent | 5bd116ccf4e341b25dbba418b6c5f0ed3b0c5187 (diff) | |
download | rails-5219aa90083a76832c6691bdef6fe3dc51a69281.tar.gz rails-5219aa90083a76832c6691bdef6fe3dc51a69281.tar.bz2 rails-5219aa90083a76832c6691bdef6fe3dc51a69281.zip |
Cookie session store: raise ArgumentError when :session_key is blank.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rwxr-xr-x | actionpack/test/controller/session/cookie_store_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/session/cookie_store_test.rb b/actionpack/test/controller/session/cookie_store_test.rb index 6d98821cfd..88425b9f02 100755 --- a/actionpack/test/controller/session/cookie_store_test.rb +++ b/actionpack/test/controller/session/cookie_store_test.rb @@ -37,6 +37,12 @@ class CookieStoreTest < Test::Unit::TestCase ENV.delete('HTTP_COOKIE') end + def test_raises_argument_error_if_missing_session_key + [nil, ''].each do |blank| + assert_raise(ArgumentError, blank.inspect) { new_session 'session_key' => blank } + end + end + def test_raises_argument_error_if_missing_secret [nil, ''].each do |blank| assert_raise(ArgumentError, blank.inspect) { new_session 'secret' => blank } |