From bf29986371b81c08bbb83ded9587013b9a174b91 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 17 Dec 2014 01:50:14 +0000 Subject: * test/gdbm/test_gdbm.rb: Added test for each_key called without a block. Patch by @joeyates [fix GH-783] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/gdbm/test_gdbm.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/gdbm') 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) -- cgit v1.2.3