[ruby/uri] Suppress deprecate warning of test class (retry)
(https://github.com/ruby/uri/pull/140) A follow-up to https://github.com/ruby/uri/commit/bd2e4be9d0fa Also, leave a comment that the use of `URI::REGEXP` is intentional https://github.com/ruby/uri/commit/bdf765e44a
This commit is contained in:
parent
5471f284d2
commit
16d98dc3c1
@ -12,10 +12,13 @@ class URI::TestCommon < Test::Unit::TestCase
|
||||
|
||||
EnvUtil.suppress_warning do
|
||||
class Foo
|
||||
# Intentionally use `URI::REGEXP`, which is for the compatibility
|
||||
include URI::REGEXP::PATTERN
|
||||
end
|
||||
end
|
||||
|
||||
def test_fallback_constants
|
||||
def test_fallback_constants
|
||||
EnvUtil.suppress_warning do
|
||||
assert_raise(NameError) { URI::FOO }
|
||||
|
||||
assert_equal URI::ABS_URI, URI::RFC2396_PARSER.regexp[:ABS_URI]
|
||||
|
Loading…
x
Reference in New Issue
Block a user