From ffc01afc479f93967360995006c61b806208357e Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi 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(+) (limited to 'test') diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb index 984a1150e6..9a3a6a8043 100644 --- a/test/openssl/test_config.rb +++ b/test/openssl/test_config.rb @@ -177,6 +177,12 @@ __EOC__ } 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.2.3