aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_syslog.rb
diff options
context:
space:
mode:
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 401d181f0a..7b3efb85aa 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