Permalink
Browse files

Clarify cookie jar test

  • Loading branch information...
jeremy committed Mar 4, 2010
1 parent 7c78559 commit 5e3e5ac12baf8432b4c2a324a81fc81901479ef5
Showing with 1 addition and 6 deletions.
  1. +1 −6 actionpack/test/controller/integration_test.rb
@@ -284,18 +284,13 @@ def test_post
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

1 comment on commit 5e3e5ac

Member

josh commented on 5e3e5ac Mar 5, 2010

Om Nom nom nom

Please sign in to comment.