summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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)