Permalink
Browse files

don't depend on the order of cookies (Hash ordering bug)

  • Loading branch information...
1 parent 9731c52 commit 2a60cc682224f8a0923de1e0bf769d5333084480 Yehuda Katz committed with wycats Mar 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/controller/cookie_test.rb
@@ -157,7 +157,7 @@ def test_permanent_signed_cookie
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

0 comments on commit 2a60cc6

Please sign in to comment.