summaryrefslogtreecommitdiff
path: root/test/test_syslog.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-18 07:40:26 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-18 07:40:26 +0000
commit950bd573f672ff86fe504d11dc429b6871c5fb00 (patch)
tree79ec1540db9a127233eaffb840dfad7399c28d47 /test/test_syslog.rb
parent402b8f5de9b29449bb66de21d95c87edcf186b84 (diff)
* 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
Diffstat (limited to 'test/test_syslog.rb')
-rw-r--r--test/test_syslog.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_syslog.rb b/test/test_syslog.rb
index 5172aa9..401d181 100644
--- a/test/test_syslog.rb
+++ b/test/test_syslog.rb
@@ -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