Skip to content

Commit d9f004f

Browse files
committed
Fix a mistake in test_hrandfield
1 parent 082d198 commit d9f004f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lint/hashes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_hrandfield
114114
assert_equal ["f1", "f2"], r.hrandfield("foo", 2).sort
115115
assert_equal 4, r.hrandfield("foo", -4).size
116116

117-
r.hrandfield("foo", 2, with_values: true) do |(field, value)|
117+
r.hrandfield("foo", 2, with_values: true).each do |(field, value)|
118118
assert ["f1", "f2"].include?(field)
119119
assert ["s1", "s2"].include?(value)
120120
end

0 commit comments

Comments
 (0)