it"calls #to_hash on the last element if keyword arguments are present"doobj=mock("destructure block keyword arguments")obj.should_receive(:to_hash).and_return({x: 9})result=m([1,2,3,obj]){|a,*b,c,**k|[a,b,c,k]}result.should==[1,[2],3,{x: 9}]end
I tried to boil it down to a shorter example and was not able to isolate it from RubySpec/mspec entanglement.
Fwiw, I do run "make test-rubyspec" before I commit,
but that's naruse's repo which I guess is different..
Like many projects nowadays, I won't bother contributing to rubyspec
because it requires an account on a proprietary service provider.
Free Software (e.g. Ruby) needs Free tools: http://mako.cc/writing/hill-free_tools.html
vm_args.c (keyword_hash_p): fix non-symbol keys hash.
rb_extract_keywords() returns 0 not Qnil when no symbol keys is
included. [ruby-core:67264] [Bug #10685]