summaryrefslogtreecommitdiffstats
path: root/test/uri
diff options
context:
space:
mode:
authorakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-09 11:07:36 +0000
committerakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-09 11:07:36 +0000
commitbdaef7b528533e52e777b4b3ce757dad579238b9 (patch)
tree742f1a17afeddb9750b9cc5ed02cb8c7d271792d /test/uri
parent51647445364e9bf261c858bb6df6a00fde9fb10d (diff)
downloadruby-bdaef7b528533e52e777b4b3ce757dad579238b9.tar.gz
ruby-bdaef7b528533e52e777b4b3ce757dad579238b9.tar.xz
ruby-bdaef7b528533e52e777b4b3ce757dad579238b9.zip
make case insensitive for host-part.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/uri')
-rw-r--r--test/uri/test_generic.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb
index de8094e4b..a982d4e1c 100644
--- a/test/uri/test_generic.rb
+++ b/test/uri/test_generic.rb
@@ -171,6 +171,12 @@ class TestGeneric < Test::Unit::TestCase
url = URI.parse('http://hoge/a/b/').route_to('http://hoge/b/')
assert_equal('../../b/', url.to_s)
+
+ url = URI.parse('http://hoge/a/b/').route_to('http://HOGE/b/')
+ assert_equal('../../b/', url.to_s)
+
+ url = URI.parse('http://hoge/a/b/').route_to('http://MOGE/b/')
+ assert_equal('//MOGE/b/', url.to_s)
end
def test_rfc2396_examples