summaryrefslogtreecommitdiff
path: root/test/uri/test_generic.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-22 00:22:19 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-22 00:22:19 +0000
commitbb83f32dc3e0424d25fa4e55d8ff32b061320e41 (patch)
treee57c8b459aabfc0a32e459f76eb2f192aa5f097a /test/uri/test_generic.rb
parent97d36e5bd0fd062fb1c1922d08170038aba61baa (diff)
support RFC3986 [Feature #2542]
* lib/uri/common.rb (URI::REGEXP): move to lib/uri/rfc2396_parser.rb. * lib/uri/common.rb (URI::Parser): ditto. * lib/uri/common.rb (URI.split): use RFC3986_Parser. * lib/uri/common.rb (URI.parse): ditto. * lib/uri/common.rb (URI.join): ditto. * lib/uri/common.rb (URI.extract): deprecated. * lib/uri/common.rb (URI.regexp): ditto. * lib/uri/rfc2396_parser.rb: added. * lib/uri/rfc3986_parser.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/uri/test_generic.rb')
-rw-r--r--test/uri/test_generic.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb
index aefd5f63c7..398c4cc830 100644
--- a/test/uri/test_generic.rb
+++ b/test/uri/test_generic.rb
@@ -121,8 +121,8 @@ class URI::TestGeneric < Test::Unit::TestCase
# 7
# reported by Mr. Kubota <em6t-kbt@asahi-net.or.jp>
- assert_raise(URI::InvalidURIError) { URI.parse('http://a_b:80/') }
- assert_raise(URI::InvalidURIError) { URI.parse('http://a_b/') }
+ assert_nothing_raised(URI::InvalidURIError) { URI.parse('http://a_b:80/') }
+ assert_nothing_raised(URI::InvalidURIError) { URI.parse('http://a_b/') }
# 8
# reported by m_seki