diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-08-20 13:22:36 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-08-20 13:22:36 -0500 |
commit | a74dbe6c528a46f11e709386c282ead8049840ba (patch) | |
tree | 6571605d0046a1c7bb4ef04031f31d3bf550ecd5 /actionpack | |
parent | 3a2ff17af66dfb135ead212de458e7f6860c8004 (diff) | |
download | rails-a74dbe6c528a46f11e709386c282ead8049840ba.tar.gz rails-a74dbe6c528a46f11e709386c282ead8049840ba.tar.bz2 rails-a74dbe6c528a46f11e709386c282ead8049840ba.zip |
Improve test coverage for integration tests cookie header
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/integration_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb index a5373912f5..47ff2dbbd3 100644 --- a/actionpack/test/controller/integration_test.rb +++ b/actionpack/test/controller/integration_test.rb @@ -329,7 +329,10 @@ class IntegrationProcessTest < ActionController::IntegrationTest 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 |