Drop multi-byte characters from the test, which are not allowed.

This commit is contained in:
Akinori MUSHA 2013-03-19 20:36:31 +09:00
parent 7d81c10914
commit ceea67add9

View file

@ -83,7 +83,7 @@ class TestHTTPCookie < Test::Unit::TestCase
def test_parse_too_long_cookie def test_parse_too_long_cookie
uri = URI.parse 'http://example' 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(HTTP::Cookie::MAX_LENGTH - 1, cookie_str.bytesize)
assert_equal 1, HTTP::Cookie.parse(cookie_str, :origin => uri).size assert_equal 1, HTTP::Cookie.parse(cookie_str, :origin => uri).size