aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/proc
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2022-03-28 17:47:04 +0200
committerBenoit Daloze <eregontp@gmail.com>2022-03-28 17:47:04 +0200
commit8db4f25bf4327f169902afd9ea8f4b03b65656f0 (patch)
treead61b99fb2d5ebfe9c07de8c2b5885e80d20b8e1 /spec/ruby/core/proc
parentae650f0372e10cea4d695769b1fcdc23a76fdf17 (diff)
downloadruby-8db4f25bf4327f169902afd9ea8f4b03b65656f0.tar.gz
Update to ruby/spec@aaf998f
Diffstat (limited to 'spec/ruby/core/proc')
-rw-r--r--spec/ruby/core/proc/parameters_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/proc/parameters_spec.rb b/spec/ruby/core/proc/parameters_spec.rb
index 3ced7b22ab..3a56b613cd 100644
--- a/spec/ruby/core/proc/parameters_spec.rb
+++ b/spec/ruby/core/proc/parameters_spec.rb
@@ -31,7 +31,7 @@ describe "Proc#parameters" do
end
it "regards named parameters in lambda as optional if lambda: false keyword used" do
- lambda {|x| }.parameters(lambda: false).first.first.should == :opt
+ -> x { }.parameters(lambda: false).first.first.should == :opt
end
end