1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2022-08-29 15:36:29 +02:00
parent a319d3cfdc
commit 4ee1a68776
32 changed files with 471 additions and 50 deletions

View file

@ -237,4 +237,11 @@ describe "A Proc" do
end
end
end
describe "taking |required keyword arguments, **kw| arguments" do
it "raises ArgumentError for missing required argument" do
p = proc { |a:, **kw| [a, kw] }
-> { p.call() }.should raise_error(ArgumentError)
end
end
end