diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-14 11:20:24 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-14 11:20:24 +0000 |
commit | 79e84e01a9fc3663cb808c8ffb5f7abd89d9deb1 (patch) | |
tree | 1c909e8ead21d042b8c57044ee75e359b67a887e /test | |
parent | b6a69b9e762e1bb2e81c2b978f2635166fee49c3 (diff) | |
download | ruby-79e84e01a9fc3663cb808c8ffb5f7abd89d9deb1.tar.gz |
* lib/uri/generic.rb (URI::Generic#to_s): change encoding to
UTF-8 as Ruby 2.2/ by Koichi ITO <koic.ito@gmail.com>
https://github.com/ruby/ruby/pull/1188 fix GH-1188
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/uri/test_generic.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb index eda6497da2..a427809daf 100644 --- a/test/uri/test_generic.rb +++ b/test/uri/test_generic.rb @@ -768,6 +768,7 @@ class URI::TestGeneric < Test::Unit::TestCase def test_build u = URI::Generic.build(['http', nil, 'example.com', 80, nil, '/foo', nil, nil, nil]) assert_equal('http://example.com:80/foo', u.to_s) + assert_equal(Encoding::UTF_8, u.to_s.encoding) u = URI::Generic.build(:port => "5432") assert_equal(":5432", u.to_s) |