aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-02-25 17:58:19 +0530
committerArun Agrawal <arunagw@gmail.com>2012-02-25 17:58:19 +0530
commit0bfcd4ffffb42b0430ddf0a58a56c8361f61a48f (patch)
tree65670f5fba523f458772c0979495e34e88d6f276 /actionpack
parent5661dab5fe19f34d1a0060007d1e393a52a0fa4c (diff)
downloadrails-0bfcd4ffffb42b0430ddf0a58a56c8361f61a48f.tar.gz
rails-0bfcd4ffffb42b0430ddf0a58a56c8361f61a48f.tar.bz2
rails-0bfcd4ffffb42b0430ddf0a58a56c8361f61a48f.zip
Checking headers in a better way. as doing here
406ece4729e8fd81f156bcb3fce16e938522466e
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/integration_test.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb
index 1ef0ba08be..ea44e68da1 100644
--- a/actionpack/test/controller/integration_test.rb
+++ b/actionpack/test/controller/integration_test.rb
@@ -296,10 +296,9 @@ class IntegrationProcessTest < ActionDispatch::IntegrationTest
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"