diff options
author | Bradford Folkens <bfolkens@gmail.com> | 2011-07-14 14:01:39 -0500 |
---|---|---|
committer | Bradford Folkens <bfolkens@gmail.com> | 2011-07-14 14:01:39 -0500 |
commit | 4755930727b3a82f5573c487f4289759d3822735 (patch) | |
tree | 1e44c4cfb15a73671572cb9aa23dcf38b8d6052e /actionpack | |
parent | db0a65cbe0a819e0fe325250155b3e2f0f01e6e2 (diff) | |
download | rails-4755930727b3a82f5573c487f4289759d3822735.tar.gz rails-4755930727b3a82f5573c487f4289759d3822735.tar.bz2 rails-4755930727b3a82f5573c487f4289759d3822735.zip |
assert nothing raised for setting a cookie value to nil in ActionDispatch
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/dispatch/test_request_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/test_request_test.rb b/actionpack/test/dispatch/test_request_test.rb index aa115608ef..4ee1d61146 100644 --- a/actionpack/test/dispatch/test_request_test.rb +++ b/actionpack/test/dispatch/test_request_test.rb @@ -40,6 +40,11 @@ class TestRequestTest < ActiveSupport::TestCase req.cookie_jar["login"] = "XJ-122" assert_cookies({"user_name" => "david", "login" => "XJ-122"}, req.cookie_jar) + assert_nothing_raised do + req.cookie_jar["login"] = nil + assert_cookies({"user_name" => "david", "login" => nil}, req.cookie_jar) + end + req.cookie_jar.delete(:login) assert_cookies({"user_name" => "david"}, req.cookie_jar) |