diff options
-rw-r--r-- | actionpack/test/controller/integration_test.rb | 7 |
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" |