From a8aa5c44fcacdb5e2b2c842d71aabe98a7570005 Mon Sep 17 00:00:00 2001 From: kazu Date: Wed, 18 Mar 2009 08:01:48 +0000 Subject: [PATCH] * test/test_syslog.rb (TestSyslog#test_open): check param after block again. because detect not to call block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/test_syslog.rb | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 66d950449c..a1f2e6cb7b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 18 16:59:48 2009 Kazuhiro NISHIYAMA + + * 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 * test/test_syslog.rb (TestSyslog#test_open): check diff --git a/test/test_syslog.rb b/test/test_syslog.rb index 401d181f0a..7b3efb85aa 100644 --- a/test/test_syslog.rb +++ b/test/test_syslog.rb @@ -64,9 +64,11 @@ class TestSyslog < Test::Unit::TestCase 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