diff options
Diffstat (limited to 'test/uri')
-rw-r--r-- | test/uri/test_generic.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb index c0597b91dc..0a068c351b 100644 --- a/test/uri/test_generic.rb +++ b/test/uri/test_generic.rb @@ -14,6 +14,13 @@ class URI::TestGeneric < Test::Unit::TestCase uri.class.component.collect {|c| uri.send(c)} end + def test_to_s + exp = 'http://example.com/'.freeze + str = URI(exp).to_s + assert_equal exp, str + refute_predicate str, :frozen?, '[ruby-core:71785] [Bug #11759]' + end + def test_parse # 0 assert_kind_of(URI::HTTP, @base_url) |