Browse files

Merge pull request #5164 from arunagw/build_fix_ruby187-p358

Build fix ruby187 p358
  • Loading branch information...
2 parents 6dbf6f3 + 99fa8e5 commit 5661dab5fe19f34d1a0060007d1e393a52a0fa4c @fxn fxn committed Feb 25, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 actionpack/test/controller/integration_test.rb
View
9 actionpack/test/controller/integration_test.rb
@@ -296,8 +296,13 @@ def test_post
self.cookies['cookie_1'] = "sugar"
self.cookies['cookie_2'] = "oatmeal"
get '/cookie_monster'
- 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 headers["Set-Cookie"].include?"path=/"
+ assert headers["Set-Cookie"].include?"cookie_3=chocolate;"
+ assert headers["Set-Cookie"].include?"cookie_1=; path=/"
+
+ assert cookies.to_hash["cookie_1"], ""
+ assert cookies.to_hash["cookie_2"], "oatmeal"
+ assert cookies.to_hash["cookie_3"], "chocolate"
end
end

0 comments on commit 5661dab

Please sign in to comment.