1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/openssl/test_config.rb
usa 43fa9ba75b * test/openssl/test_config.rb (test_freeze): skip on Windows because Config.new
needs an argument on it.  When the maintainer returns, this test shall be
  corrected.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 01:17:58 +00:00

16 lines
401 B
Ruby

require 'openssl'
require "test/unit"
class OpenSSL::TestConfig < Test::Unit::TestCase
def test_freeze
skip "need an argument for OpenSSL::Config.new on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM
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