mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@b6b7752
This commit is contained in:
parent
64d8c0815e
commit
b3fa158d1c
35 changed files with 652 additions and 56 deletions
|
@ -1,7 +1,7 @@
|
|||
describe :proc_call_block_args, shared: true do
|
||||
it "can receive block arguments" do
|
||||
Proc.new {|&b| b.send(@method)}.send(@method) {1 + 1}.should == 2
|
||||
->&b { b.send(@method)}.send(@method) {1 + 1}.should == 2
|
||||
-> &b { b.send(@method)}.send(@method) {1 + 1}.should == 2
|
||||
proc {|&b| b.send(@method)}.send(@method) {1 + 1}.should == 2
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue