diff options
author | José Valim <jose.valim@gmail.com> | 2010-05-18 01:42:35 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-18 01:51:45 +0200 |
commit | 941b653627b9ca7b7f2ddb4a712fb0efccc10500 (patch) | |
tree | 84fbdd7b30f2e4eab2e76e420b6f9c392de16c4f /actionpack/test | |
parent | 8c5e1652c7d1343a4b4acbc10bbcb59e202bf37d (diff) | |
download | rails-941b653627b9ca7b7f2ddb4a712fb0efccc10500.tar.gz rails-941b653627b9ca7b7f2ddb4a712fb0efccc10500.tar.bz2 rails-941b653627b9ca7b7f2ddb4a712fb0efccc10500.zip |
Rely on set and delete cookie logic from rack.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/response_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/response_test.rb b/actionpack/test/dispatch/response_test.rb index c7f7f3102d..c20fa10f63 100644 --- a/actionpack/test/dispatch/response_test.rb +++ b/actionpack/test/dispatch/response_test.rb @@ -113,6 +113,10 @@ class ResponseTest < ActiveSupport::TestCase status, headers, body = @response.to_a assert_equal "user_name=david; path=/\nlogin=foo%26bar; path=/; expires=Mon, 10-Oct-2005 05:00:00 GMT", headers["Set-Cookie"] assert_equal({"login" => "foo&bar", "user_name" => "david"}, @response.cookies) + + @response.delete_cookie("login") + status, headers, body = @response.to_a + assert_equal({"user_name" => "david", "login" => nil}, @response.cookies) end test "read cache control" do |