Permalink
Browse files

* test/gdbm/test_gdbm.rb: Added test for each_key called without a bl…

…ock.

  Patch by @joeyates [fix GH-783]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
hsbt committed Dec 17, 2014
1 parent 6eac885 commit bf29986371b81c08bbb83ded9587013b9a174b91
Showing with 9 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +4 −0 test/gdbm/test_gdbm.rb
View
@@ -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
View
@@ -390,6 +390,10 @@ def test_each_key
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)

0 comments on commit bf29986

Please sign in to comment.