diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-26 12:18:04 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-26 12:18:04 +0000 |
commit | 2c3a48614a49e5021cbe5cccff00e6464a1d4e21 (patch) | |
tree | eee9a7d9ddc3cab9ce8412f63a9aec5aeaa95fe6 /test/openssl | |
parent | 21c32a3c7a64bed2379b3c2d31e832748467df0f (diff) | |
download | ruby-2c3a48614a49e5021cbe5cccff00e6464a1d4e21.tar.gz |
* test/openssl/test_config.rb (OpenSSL::TestConfig): new test case.
test for r25017.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_config.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb new file mode 100644 index 0000000000..9578bb2547 --- /dev/null +++ b/test/openssl/test_config.rb @@ -0,0 +1,15 @@ +require 'openssl' +require "test/unit" + +class OpenSSL::TestConfig < Test::Unit::TestCase + def test_freeze + c = OpenSSL::Config.new + c['foo'] = [['key', 'value']] + c.freeze + + # [ruby-core:18377] + assert_raise(RuntimeError, /frozen/) do + c['foo'] = [['key', 'wrong']] + end + end +end |