mirror of https://github.com/rails/rails
parent
4de3b3dac5
commit
bf112e551b
|
@ -40,10 +40,10 @@ 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
|
||||
assert_nothing_raised do
|
||||
req.cookie_jar["login"] = nil
|
||||
assert_cookies({"user_name" => "david", "login" => nil}, req.cookie_jar)
|
||||
end
|
||||
end
|
||||
|
||||
req.cookie_jar.delete(:login)
|
||||
assert_cookies({"user_name" => "david"}, req.cookie_jar)
|
||||
|
|
Loading…
Reference in New Issue