ruby-changes:65486
From: Kazuki <ko1@a...>
Date: Tue, 16 Mar 2021 20:38:38 +0900 (JST)
Subject: [ruby-changes:65486] ffc01afc47 (master): [ruby/openssl] test/openssl/test_config: add missing test case for Config.parse_config
https://git.ruby-lang.org/ruby.git/commit/?id=ffc01afc47 From ffc01afc479f93967360995006c61b806208357e Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi <k@r...> Date: Wed, 19 Feb 2020 05:05:41 +0000 Subject: [ruby/openssl] test/openssl/test_config: add missing test case for Config.parse_config https://github.com/ruby/openssl/commit/9ce2ccf36d --- test/openssl/test_config.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb index 984a115..9a3a6a8 100644 --- a/test/openssl/test_config.rb +++ b/test/openssl/test_config.rb @@ -177,6 +177,12 @@ __EOC__ https://github.com/ruby/ruby/blob/trunk/test/openssl/test_config.rb#L177 } end + def test_s_parse_config + ret = OpenSSL::Config.parse_config(@it.to_s) + assert_equal(@it.sections.sort, ret.keys.sort) + assert_equal(@it["default"], ret["default"]) + end + def test_initialize c = OpenSSL::Config.new assert_equal("", c.to_s) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/