Because https://github.com/ruby/ruby/pull/5148 merged after Ruby 3.1.0 released.

13241b71a5 did not fix proc spec yet.

https://github.com/ruby/actions/runs/4718820699?check_suite_focus=true#step:18:173
```
  1)
  Proc#parameters adds * rest arg for "star" argument FAILED
  Expected [[:req, :x], [:rest]] == [[:req, :x], [:rest, :*]]
  to be truthy but was false
  /home/runner/work/actions/actions/snapshot-ruby_3_1/spec/ruby/core/proc/parameters_spec.rb:85:in `block (3 levels) in <top (required)>'
  /home/runner/work/actions/actions/snapshot-ruby_3_1/spec/ruby/core/proc/parameters_spec.rb:3:in `<top (required)>'
```
This commit is contained in:
Kazuhiro NISHIYAMA 2022-01-06 10:14:11 +09:00
Родитель 445c055b44
Коммит 5e7cd480f9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 262ED8DBB4222F7A
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -80,13 +80,13 @@ describe "Proc#parameters" do
-> x {}.parameters.should == [[:req, :x]]
end
ruby_version_is '3.1' do
ruby_version_is '3.2' do
it "adds * rest arg for \"star\" argument" do
-> x, * {}.parameters.should == [[:req, :x], [:rest, :*]]
end
end
ruby_version_is ''...'3.1' do
ruby_version_is ''...'3.2' do
it "adds nameless rest arg for \"star\" argument" do
-> x, * {}.parameters.should == [[:req, :x], [:rest]]
end