diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-09-15 21:54:31 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-09-15 21:56:00 +0200 |
commit | 1af0319fc88688bc5dd5e49eecdb8b534ead9991 (patch) | |
tree | 352b35490e64bc961dc005d679392106d6be90b9 /spec/ruby/core/proc/new_spec.rb | |
parent | 9b535f3ff7c2f48e34dd44564df7adc723b81276 (diff) | |
download | ruby-1af0319fc88688bc5dd5e49eecdb8b534ead9991.tar.gz |
2.8 -> 3.0 in specs
Diffstat (limited to 'spec/ruby/core/proc/new_spec.rb')
-rw-r--r-- | spec/ruby/core/proc/new_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |