summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/test_syslog.rb6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 163c384..66d9504 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* error.c (report_bug): rb_bug can be caused by extension
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