From ceea67add944a6ebcfa05ee9a66a6e224987f8cf Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Tue, 19 Mar 2013 20:36:31 +0900 Subject: [PATCH] Drop multi-byte characters from the test, which are not allowed. --- test/test_http_cookie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_http_cookie.rb b/test/test_http_cookie.rb index f1381e2..1f6e38b 100644 --- a/test/test_http_cookie.rb +++ b/test/test_http_cookie.rb @@ -83,7 +83,7 @@ class TestHTTPCookie < Test::Unit::TestCase def test_parse_too_long_cookie uri = URI.parse 'http://example' - cookie_str = "foo=#{'クッキー' * 340}; path=/ab/" + cookie_str = "foo=#{'Cookie' * 680}; path=/ab/" assert_equal(HTTP::Cookie::MAX_LENGTH - 1, cookie_str.bytesize) assert_equal 1, HTTP::Cookie.parse(cookie_str, :origin => uri).size