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

Make proc/Proc.new without block an error instead of warning

The warning for these was added in 2.7.
This commit is contained in:
Jeremy Evans 2020-06-10 15:17:54 -07:00
parent f48fce4981
commit f3e927b0cc
Notes: git 2020-06-11 09:50:16 +09:00
6 changed files with 11 additions and 63 deletions

View file

@ -48,7 +48,7 @@ describe "Kernel#proc" do
end
end
ruby_version_is "2.7" do
ruby_version_is "2.7" ... "2.8" do
it "can be created when called with no block" do
def some_method
proc