We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f91905c commit 7e0e90aCopy full SHA for 7e0e90a
test/test_result_set.rb
@@ -26,7 +26,7 @@ def test_each_hash
26
rs.close
27
28
rs = @db.prepare("select * from foo").execute
29
- rs.each_hash.to_a do |hash|
+ rs.each_hash.to_a.each do |hash| # each_hash without block, to_a confirms enum
30
assert_equal list[hash["a"] - 1], hash["b"]
31
end
32
0 commit comments