Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/regression/GH-1969_duplicate_underscore_block_arg.rb
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ def foo; yield 1,2,3,4,5,6,7; end
describe 'Blocks with duplicate _ args' do
it 'should not crash' do
foo do |x,_,_,_,a,b,c|
bar {}
[x,a,b,c]
end.should_be [1,5,6,7]
yielder {}
[x,_,a,b,c]
end.should_be [1,2,5,6,7]
end
end

0 comments on commit 2fcee7e

Please sign in to comment.