Skip to content

Commit

Permalink
Merge pull request #2073 from bfolkens/master
Browse files Browse the repository at this point in the history
ported test from pull request #2071 to master
  • Loading branch information
spastorino committed Jul 14, 2011
2 parents 31ea027 + 4755930 commit f88e9d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionpack/test/dispatch/test_request_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f88e9d8

Please sign in to comment.