diff options
author | yugui <yugui@ruby-lang.org> | 2009-11-26 12:18:04 +0000 |
---|---|---|
committer | yugui <yugui@ruby-lang.org> | 2009-11-26 12:18:04 +0000 |
commit | fab46b6ffe239a4d542f3044f68c4d4f7e917716 (patch) | |
tree | f719db3bae7c5c537425f7b25b872e51a061a823 /test | |
parent | 91cb9c5c56d65f958f8bedfa85eb80941ddee576 (diff) | |
download | ruby-openssl-history-fab46b6ffe239a4d542f3044f68c4d4f7e917716.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')
-rw-r--r-- | test/test_config.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_config.rb b/test/test_config.rb new file mode 100644 index 0000000..9578bb2 --- /dev/null +++ b/test/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 |