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

2.8 -> 3.0 in specs

This commit is contained in:
Benoit Daloze 2020-09-15 21:54:31 +02:00
parent 9b535f3ff7
commit 1af0319fc8
147 changed files with 199 additions and 201 deletions

View file

@ -421,7 +421,7 @@ describe "Invoking a method" do
specs.rest_len(0,*a,4,*5,6,7,*c,-1).should == 11
end
ruby_version_is ""..."2.8" do
ruby_version_is ""..."3.0" do
it "expands the Array elements from the splat after executing the arguments and block if no other arguments follow the splat" do
def self.m(*args, &block)
[args, block]
@ -437,7 +437,7 @@ describe "Invoking a method" do
end
end
ruby_version_is "2.8" do
ruby_version_is "3.0" do
it "expands the Array elements from the splat before applying block argument operations" do
def self.m(*args, &block)
[args, block]