summaryrefslogtreecommitdiff
path: root/test/test_syslog.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-18 08:01:48 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-18 08:01:48 +0000
commita8aa5c44fcacdb5e2b2c842d71aabe98a7570005 (patch)
treedc15d8b2eafc12c80c1745380f988496e8eb919e /test/test_syslog.rb
parent950bd573f672ff86fe504d11dc429b6871c5fb00 (diff)
* 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
Diffstat (limited to 'test/test_syslog.rb')
-rw-r--r--test/test_syslog.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_syslog.rb b/test/test_syslog.rb
index 401d181..7b3efb8 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