summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2020-02-19 05:05:41 +0000
committerKazuki Yamaguchi <k@rhe.jp>2021-03-16 19:16:10 +0900
commitffc01afc479f93967360995006c61b806208357e (patch)
treed6b98c5614afe89681da2103d4a5625bc14e217c /test
parent67f5847c617e49a314400cb8f1ff1d559492682c (diff)
[ruby/openssl] test/openssl/test_config: add missing test case for Config.parse_config
https://github.com/ruby/openssl/commit/9ce2ccf36d
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4275
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_config.rb6
1 files changed, 6 insertions, 0 deletions
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)