suppress warnings of URI.extract
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
053759edfc
commit
66aba8cca2
@ -1,5 +1,6 @@
|
||||
require 'test/unit'
|
||||
require 'uri'
|
||||
require '../ruby/envutil'
|
||||
|
||||
module URI
|
||||
|
||||
@ -12,6 +13,7 @@ class TestCommon < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_extract
|
||||
EnvUtil.suppress_warning do
|
||||
assert_equal(['http://example.com'],
|
||||
URI.extract('http://example.com'))
|
||||
assert_equal(['http://example.com'],
|
||||
@ -28,6 +30,7 @@ class TestCommon < Test::Unit::TestCase
|
||||
assert_equal(['From:', 'mailto:xxx@xxx.xxx.xxx]'].sort,
|
||||
URI.extract('From: XXX [mailto:xxx@xxx.xxx.xxx]').sort)
|
||||
end
|
||||
end
|
||||
|
||||
def test_regexp
|
||||
assert_instance_of Regexp, URI.regexp
|
||||
|
Loading…
x
Reference in New Issue
Block a user