mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@d01709f
This commit is contained in:
parent
a319d3cfdc
commit
4ee1a68776
32 changed files with 471 additions and 50 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue