aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/integration_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-03-04 15:31:22 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2010-03-04 15:31:28 -0800
commit5e3e5ac12baf8432b4c2a324a81fc81901479ef5 (patch)
tree74c40130b8a3c50f2993888ea25c2792dac6302a /actionpack/test/controller/integration_test.rb
parent7c785592ec9a9d7a73978d133dfa03b5b9b78fdc (diff)
downloadrails-5e3e5ac12baf8432b4c2a324a81fc81901479ef5.tar.gz
rails-5e3e5ac12baf8432b4c2a324a81fc81901479ef5.tar.bz2
rails-5e3e5ac12baf8432b4c2a324a81fc81901479ef5.zip
Clarify cookie jar test
Diffstat (limited to 'actionpack/test/controller/integration_test.rb')
-rw-r--r--actionpack/test/controller/integration_test.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb
index 5cb6aa6997..2180466ca7 100644
--- a/actionpack/test/controller/integration_test.rb
+++ b/actionpack/test/controller/integration_test.rb
@@ -284,18 +284,13 @@ class IntegrationProcessTest < ActionController::IntegrationTest
end
end
- def test_cookie_monster
+ test 'response cookies are added to the cookie jar for the next request' do
with_test_route_set do
self.cookies['cookie_1'] = "sugar"
self.cookies['cookie_2'] = "oatmeal"
get '/cookie_monster'
- assert_equal 410, status
- assert_equal "Gone", status_message
- assert_response 410
- assert_response :gone
assert_equal "cookie_1=; path=/\ncookie_3=chocolate; path=/", headers["Set-Cookie"]
assert_equal({"cookie_1"=>"", "cookie_2"=>"oatmeal", "cookie_3"=>"chocolate"}, cookies.to_hash)
- assert_equal "Gone", response.body
end
end