* test/test_syslog.rb (TestSyslog#test_open): check

block parameter in block. [ruby-dev:38180]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2009-03-18 07:40:26 +00:00
parent 402b8f5de9
commit 950bd573f6
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Wed Mar 18 16:38:11 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/test_syslog.rb (TestSyslog#test_open): check
block parameter in block. [ruby-dev:38180]
Wed Mar 18 12:48:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (report_bug): rb_bug can be caused by extension

View File

@ -64,9 +64,9 @@ class TestSyslog < Test::Unit::TestCase
assert_equal(nil, Syslog.facility)
# block
param = nil
Syslog.open { |param| }
assert_equal(Syslog, param)
Syslog.open { |param|
assert_equal(Syslog, param)
}
ensure
Syslog.close if Syslog.opened?
end