aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/gdbm/test_gdbm.rb4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4c1bbe7215..a008fc4015 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Dec 17 10:50:09 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
+
+ * test/gdbm/test_gdbm.rb: Added test for each_key called without a block.
+ Patch by @joeyates [fix GH-783]
+
Wed Dec 17 10:18:42 2014 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each): check
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb
index 07a1bb3386..d57e9526c3 100644
--- a/test/gdbm/test_gdbm.rb
+++ b/test/gdbm/test_gdbm.rb
@@ -390,6 +390,10 @@ if defined? GDBM
assert_equal(@gdbm, ret)
end
+ def test_each_key_without_block
+ assert_kind_of Enumerator, @gdbm.each_key
+ end
+
def test_keys
assert_equal([], @gdbm.keys)