diff options
| author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-18 08:01:48 +0000 |
|---|---|---|
| committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-18 08:01:48 +0000 |
| commit | 29c629b0538ac6a1fe99e0724cde7074e0ac1d4b (patch) | |
| tree | dc15d8b2eafc12c80c1745380f988496e8eb919e | |
| parent | 083e59314f1a844bae735f2587cad700d285e3a9 (diff) | |
| download | ruby-29c629b0538ac6a1fe99e0724cde7074e0ac1d4b.tar.gz ruby-29c629b0538ac6a1fe99e0724cde7074e0ac1d4b.tar.xz ruby-29c629b0538ac6a1fe99e0724cde7074e0ac1d4b.zip | |
* test/test_syslog.rb (TestSyslog#test_open): check
param after block again. because detect not to call block.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | test/test_syslog.rb | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Mar 18 16:59:48 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com> + + * 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@mbf.nifty.com> * test/test_syslog.rb (TestSyslog#test_open): check diff --git a/test/test_syslog.rb b/test/test_syslog.rb index 401d181f0..7b3efb85a 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 |
