mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #2073 from bfolkens/master
ported test from pull request #2071 to master
This commit is contained in:
commit
f88e9d83f1
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue