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

ruby-changes:11381

From: kazu <ko1@a...>
Date: Wed, 18 Mar 2009 17:01:58 +0900 (JST)
Subject: [ruby-changes:11381] Ruby:r23002 (trunk): * test/test_syslog.rb (TestSyslog#test_open): check

kazu	2009-03-18 17:01:48 +0900 (Wed, 18 Mar 2009)

  New Revision: 23002

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

  Log:
    * test/test_syslog.rb (TestSyslog#test_open): check
      param after block again. because detect not to call block.

  Modified files:
    trunk/ChangeLog
    trunk/test/test_syslog.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23001)
+++ ChangeLog	(revision 23002)
@@ -1,3 +1,8 @@
+Wed Mar 18 16:59:48 2009  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* test/test_syslog.rb (TestSyslog#test_open): check
+	  param after block again. because detect not to call block.
+
 Wed Mar 18 16:38:11 2009  Kazuhiro NISHIYAMA  <zn@m...>
 
 	* test/test_syslog.rb (TestSyslog#test_open): check
Index: test/test_syslog.rb
===================================================================
--- test/test_syslog.rb	(revision 23001)
+++ test/test_syslog.rb	(revision 23002)
@@ -64,9 +64,11 @@
     assert_equal(nil, Syslog.facility)
 
     # block
-    Syslog.open { |param|
-      assert_equal(Syslog, param)
+    param = nil
+    Syslog.open { |syslog|
+      param = syslog
     }
+    assert_equal(Syslog, param)
   ensure
     Syslog.close if Syslog.opened?
   end

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

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