Skip to content

Commit d86589b

Browse files
committed
Fix calls in shared Hash#{each,each_pair} spec
1 parent 918d6c3 commit d86589b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/ruby/core/hash/shared/each.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def obj.foo(key, value)
2828
end
2929

3030
ScratchPad.record([])
31-
{ "a" => 1 }.each(&obj.method(:foo))
31+
{ "a" => 1 }.send(@method, &obj.method(:foo))
3232
ScratchPad.recorded.should == ["a", 1]
3333

3434
ScratchPad.record([])
35-
{ "a" => 1 }.each(&-> key, value { ScratchPad << key << value })
35+
{ "a" => 1 }.send(@method, &-> key, value { ScratchPad << key << value })
3636
ScratchPad.recorded.should == ["a", 1]
3737
end
3838

0 commit comments

Comments
 (0)