提交 2a60cc68 编写于 作者: Y Yehuda Katz 提交者: wycats

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

上级 9731c521
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册