Permalink
Browse files

fixed test when running with latest 1.8.7-p357 and ree

  • Loading branch information...
1 parent f1c6037 commit f8f873a5d3bc6845574ebed6a78d1539c6e7ea34 @arunagw arunagw committed Mar 7, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 actionpack/test/controller/integration_test.rb
@@ -296,8 +296,12 @@ 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)
+ _headers = headers["Set-Cookie"].split("\n")
+ assert _headers.include?("cookie_1=; path=/")
+ assert _headers.include?("cookie_3=chocolate; path=/")
+ assert_equal cookies.to_hash["cookie_1"], ""
+ assert_equal cookies.to_hash["cookie_2"], "oatmeal"
+ assert_equal cookies.to_hash["cookie_3"], "chocolate"
end
end

0 comments on commit f8f873a

Please sign in to comment.