We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 082d198 commit d9f004fCopy full SHA for d9f004f
test/lint/hashes.rb
@@ -114,7 +114,7 @@ def test_hrandfield
114
assert_equal ["f1", "f2"], r.hrandfield("foo", 2).sort
115
assert_equal 4, r.hrandfield("foo", -4).size
116
117
- r.hrandfield("foo", 2, with_values: true) do |(field, value)|
+ r.hrandfield("foo", 2, with_values: true).each do |(field, value)|
118
assert ["f1", "f2"].include?(field)
119
assert ["s1", "s2"].include?(value)
120
end
0 commit comments