[前][次][番号順一覧][スレッド一覧]

ruby-changes:14120

From: yugui <ko1@a...>
Date: Thu, 26 Nov 2009 21:18:21 +0900 (JST)
Subject: [ruby-changes:14120] Ruby:r25934 (trunk): * test/openssl/test_config.rb (OpenSSL::TestConfig): new test case.

yugui	2009-11-26 21:18:04 +0900 (Thu, 26 Nov 2009)

  New Revision: 25934

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25934

  Log:
    * test/openssl/test_config.rb (OpenSSL::TestConfig): new test case.
      test for r25017.

  Added files:
    trunk/test/openssl/test_config.rb
  Modified files:
    trunk/ChangeLog

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25933)
+++ ChangeLog	(revision 25934)
@@ -1,3 +1,8 @@
+Thu Nov 26 21:11:23 2009  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* test/openssl/test_config.rb (OpenSSL::TestConfig): new test case.
+	  test for r25017.
+
 Thu Nov 26 21:08:54 2009  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* test/ruby/test_range.rb (TestRange#test_comparison_when_recursive):
Index: test/openssl/test_config.rb
===================================================================
--- test/openssl/test_config.rb	(revision 0)
+++ test/openssl/test_config.rb	(revision 25934)
@@ -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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]