aboutsummaryrefslogtreecommitdiffstats
path: root/test/uri
diff options
context:
space:
mode:
Diffstat (limited to 'test/uri')
-rw-r--r--test/uri/test_generic.rb1
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)