aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/cookie_test.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@Yehuda-Katzs-MacBook-Pro.local>2010-03-03 16:06:15 -0800
committerwycats <wycats@gmail.com>2010-03-03 16:07:23 -0800
commit2a60cc682224f8a0923de1e0bf769d5333084480 (patch)
tree65783e1dd211ad6ffbeab2d8761f1caf8f0d4c30 /actionpack/test/controller/cookie_test.rb
parent9731c5213b9f1a46c478da862b43cbf708da40da (diff)
downloadrails-2a60cc682224f8a0923de1e0bf769d5333084480.tar.gz
rails-2a60cc682224f8a0923de1e0bf769d5333084480.tar.bz2
rails-2a60cc682224f8a0923de1e0bf769d5333084480.zip
don't depend on the order of cookies (Hash ordering bug)
Diffstat (limited to 'actionpack/test/controller/cookie_test.rb')
-rw-r--r--actionpack/test/controller/cookie_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/cookie_test.rb b/actionpack/test/controller/cookie_test.rb
index f5ccef8aaf..908967a110 100644
--- a/actionpack/test/controller/cookie_test.rb
+++ b/actionpack/test/controller/cookie_test.rb
@@ -157,7 +157,7 @@ class CookieTest < ActionController::TestCase
def assert_cookie_header(expected)
header = @response.headers["Set-Cookie"]
if header.respond_to?(:to_str)
- assert_equal expected, header
+ assert_equal expected.split("\n").sort, header.split("\n").sort
else
assert_equal expected.split("\n"), header
end