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

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
This commit is contained in:
kazu 2009-03-18 08:01:48 +00:00
parent 950bd573f6
commit a8aa5c44fc
2 changed files with 9 additions and 2 deletions

View file

@ -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> Wed Mar 18 16:38:11 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/test_syslog.rb (TestSyslog#test_open): check * test/test_syslog.rb (TestSyslog#test_open): check

View file

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