Permalink
Browse files

Improve test coverage for integration tests cookie header

  • Loading branch information...
1 parent 3a2ff17 commit a74dbe6c528a46f11e709386c282ead8049840ba @josh josh committed Aug 20, 2008
Showing with 4 additions and 1 deletion.
  1. +4 −1 actionpack/test/controller/integration_test.rb
@@ -329,7 +329,10 @@ def test_cookie_monster
assert_response :gone
assert_equal nil, response.headers["Set-Cookie"]
assert_equal ["cookie_1=; path=/", "cookie_3=chocolate; path=/"], headers['set-cookie']
- assert_equal [[], ["chocolate"]], response.headers["cookie"]
+ assert_equal [
+ CGI::Cookie::new("name" => "cookie_1", "value" => ""),
+ CGI::Cookie::new("name" => "cookie_3", "value" => "chocolate")
+ ], response.headers["cookie"]
assert_equal [], headers["cookie"]
assert_equal({"cookie_1"=>"", "cookie_2"=>"oatmeal", "cookie_3"=>"chocolate"}, cookies)
assert_equal "Gone", response.body

0 comments on commit a74dbe6

Please sign in to comment.