diff options
author | HoneyryderChuck <[email protected]> | 2024-11-25 08:51:37 +0000 |
---|---|---|
committer | git <[email protected]> | 2024-12-07 07:52:01 +0000 |
commit | 2a006fe54b2596f67db8f1ef8697f12e61789b37 (patch) | |
tree | 0a7e50538b3d13ebbd1a18f6e41386ef6ab3c1cc /test/openssl | |
parent | 06fc13a15c72ecf77a638b45ea325d945bc7cc6d (diff) |
[ruby/openssl] make config frozen on initialize
https://github.com/ruby/openssl/commit/50599513cf
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_config.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb index 6dbb9c6138..f165ca4934 100644 --- a/test/openssl/test_config.rb +++ b/test/openssl/test_config.rb @@ -39,6 +39,7 @@ __EOD__ assert_equal("[ default ]\n\n", c.to_s) c = OpenSSL::Config.parse(@it.to_s) assert_equal(['CA_default', 'ca', 'default'], c.sections.sort) + assert_predicate(c, :frozen?) end def test_s_parse_format @@ -188,6 +189,7 @@ __EOC__ c = OpenSSL::Config.new assert_equal("", c.to_s) assert_equal([], c.sections) + assert_predicate(c, :frozen?) end def test_initialize_with_empty_file @@ -268,8 +270,10 @@ __EOC__ def test_dup assert_equal(['CA_default', 'ca', 'default'], @it.sections.sort) c1 = @it.dup + assert_predicate(c1, :frozen?) assert_equal(@it.sections.sort, c1.sections.sort) c2 = @it.clone + assert_predicate(c2, :frozen?) assert_equal(@it.sections.sort, c2.sections.sort) end |