Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

3 2 stable #5166

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 25, 2012
  1. @arunagw
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 4 deletions.
  1. +3 −4 actionpack/test/controller/integration_test.rb
View
7 actionpack/test/controller/integration_test.rb
@@ -296,10 +296,9 @@ def test_post
self.cookies['cookie_1'] = "sugar"
self.cookies['cookie_2'] = "oatmeal"
get '/cookie_monster'
- assert headers["Set-Cookie"].include?"path=/"
- assert headers["Set-Cookie"].include?"cookie_3=chocolate;"
- assert headers["Set-Cookie"].include?"cookie_1=; path=/"
-
+ _headers = headers["Set-Cookie"].split("\n")
+ assert _headers.include?("cookie_1=; path=/")
+ assert _headers.include?("cookie_3=chocolate; path=/")
assert cookies.to_hash["cookie_1"], ""
assert cookies.to_hash["cookie_2"], "oatmeal"
assert cookies.to_hash["cookie_3"], "chocolate"
Something went wrong with that request. Please try again.