Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Checking headers in a better way. as doing here

  • Loading branch information...
commit 0bfcd4ffffb42b0430ddf0a58a56c8361f61a48f 1 parent 5661dab
@arunagw arunagw authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 actionpack/test/controller/integration_test.rb
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"
Please sign in to comment.
Something went wrong with that request. Please try again.