Skip to content

Commit 2e0f73f

Browse files
committed
Rename and switch RFC2396_PARSER test
1 parent 0ab9abb commit 2e0f73f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/uri/test_parser.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def test_compare
3333
assert(!u2.equal?(u3))
3434
end
3535

36-
def test_parse
36+
def test_parse_rfc2396_parser
37+
URI.parser = URI::RFC2396_PARSER
38+
3739
escaped = URI::REGEXP::PATTERN::ESCAPED
3840
hex = URI::REGEXP::PATTERN::HEX
3941
p1 = URI::Parser.new(:ESCAPED => "(?:#{escaped}|%u[#{hex}]{4})")
@@ -43,6 +45,8 @@ def test_parse
4345
u1.path = '/%uDCBA'
4446
assert_equal(['http', nil, 'a', URI::HTTP.default_port, '/%uDCBA', nil, nil],
4547
uri_to_ary(u1))
48+
ensure
49+
URI.parser = URI::DEFAULT_PARSER
4650
end
4751

4852
def test_parse_query_pct_encoded

0 commit comments

Comments
 (0)