Skip to content
Browse files

Merge pull request #2073 from bfolkens/master

ported test from pull request #2071 to master
  • Loading branch information...
2 parents 31ea027 + 4755930 commit f88e9d83f13c7d29120696d7e568fae1efea67f4 @spastorino spastorino committed Jul 14, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/dispatch/test_request_test.rb
View
5 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)

0 comments on commit f88e9d8

Please sign in to comment.
Something went wrong with that request. Please try again.