* 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
This commit is contained in:
parent
21c32a3c7a
commit
2c3a48614a
@ -1,3 +1,8 @@
|
|||||||
|
Thu Nov 26 21:11:23 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
|
* test/openssl/test_config.rb (OpenSSL::TestConfig): new test case.
|
||||||
|
test for r25017.
|
||||||
|
|
||||||
Thu Nov 26 21:08:54 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
Thu Nov 26 21:08:54 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
* test/ruby/test_range.rb (TestRange#test_comparison_when_recursive):
|
* test/ruby/test_range.rb (TestRange#test_comparison_when_recursive):
|
||||||
|
15
test/openssl/test_config.rb
Normal file
15
test/openssl/test_config.rb
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user