ruby-changes:65934
From: Jeremy <ko1@a...>
Date: Thu, 22 Apr 2021 14:57:35 +0900 (JST)
Subject: [ruby-changes:65934] 3e27ca6047 (master): [ruby/uri] Add tests for URI::RFC{2396, 3986}_Parser#inspect
https://git.ruby-lang.org/ruby.git/commit/?id=3e27ca6047 From 3e27ca60470cbd73dd82ca6b8007a3b8362d576e Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Thu, 4 Mar 2021 15:18:36 -0800 Subject: [ruby/uri] Add tests for URI::RFC{2396,3986}_Parser#inspect https://github.com/ruby/uri/commit/d47dae2f8e --- test/uri/test_parser.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/uri/test_parser.rb b/test/uri/test_parser.rb index b13a26c..03de137 100644 --- a/test/uri/test_parser.rb +++ b/test/uri/test_parser.rb @@ -7,6 +7,11 @@ class URI::TestParser < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/uri/test_parser.rb#L7 uri.class.component.collect {|c| uri.send(c)} end + def test_inspect + assert_match(/URI::RFC2396_Parser/, URI::Parser.new.inspect) + assert_match(/URI::RFC3986_Parser/, URI::RFC3986_Parser.new.inspect) + end + def test_compare url = 'http://a/b/c/d;p?q' u0 = URI.parse(url) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/