diff options
author | Yehuda Katz <wycats@Yehuda-Katzs-MacBook-Pro.local> | 2010-03-03 16:06:15 -0800 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-03 16:07:23 -0800 |
commit | 2a60cc682224f8a0923de1e0bf769d5333084480 (patch) | |
tree | 65783e1dd211ad6ffbeab2d8761f1caf8f0d4c30 /actionpack/test/controller/cookie_test.rb | |
parent | 9731c5213b9f1a46c478da862b43cbf708da40da (diff) | |
download | rails-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.rb | 2 |
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 |