From 1af0319fc88688bc5dd5e49eecdb8b534ead9991 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 15 Sep 2020 21:54:31 +0200 Subject: 2.8 -> 3.0 in specs --- spec/ruby/core/proc/new_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/ruby/core/proc/new_spec.rb') diff --git a/spec/ruby/core/proc/new_spec.rb b/spec/ruby/core/proc/new_spec.rb index 0a6247239f..6d5eb67a4b 100644 --- a/spec/ruby/core/proc/new_spec.rb +++ b/spec/ruby/core/proc/new_spec.rb @@ -203,7 +203,7 @@ describe "Proc.new without a block" do end end - ruby_version_is "2.7"..."2.8" do + ruby_version_is "2.7"..."3.0" do it "can be created if invoked from within a method with a block" do -> { ProcSpecs.new_proc_in_method { "hello" } }.should complain(/Capturing the given block using Proc.new is deprecated/) end @@ -224,7 +224,7 @@ describe "Proc.new without a block" do end end - ruby_version_is "2.8" do + ruby_version_is "3.0" do it "raises an ArgumentError when passed no block" do def some_method Proc.new -- cgit v1.2.3