1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

spec: suppress deprecations of "lambda(&proc_block)" pattern

This commit is contained in:
Yusuke Endoh 2020-12-12 23:25:15 +09:00
parent efbef729b2
commit 7ef5226520
3 changed files with 21 additions and 11 deletions

View file

@ -4,6 +4,8 @@ describe :kernel_lambda, shared: true do
end
it "raises an ArgumentError when no block is given" do
-> { send(@method) }.should raise_error(ArgumentError)
suppress_warning do
-> { send(@method) }.should raise_error(ArgumentError)
end
end
end