1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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> Wed Mar 18 12:48:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (report_bug): rb_bug can be caused by extension * 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) assert_equal(nil, Syslog.facility)
# block # block
param = nil Syslog.open { |param|
Syslog.open { |param| }
assert_equal(Syslog, param) assert_equal(Syslog, param)
}
ensure ensure
Syslog.close if Syslog.opened? Syslog.close if Syslog.opened?
end end