diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-06-10 15:17:54 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-06-10 17:49:54 -0700 |
commit | f3e927b0cc1fcbf03abea7f66b1a3736a270a8de (patch) | |
tree | dbe7b9d1db555e85171d7cb1eb72a0ca9c3509a9 /bootstraptest/test_flow.rb | |
parent | f48fce4981574f7df33982eb901c94e8f4d6d4ab (diff) |
Make proc/Proc.new without block an error instead of warning
The warning for these was added in 2.7.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3208
Diffstat (limited to 'bootstraptest/test_flow.rb')
-rw-r--r-- | bootstraptest/test_flow.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstraptest/test_flow.rb b/bootstraptest/test_flow.rb index 9da6d45cbd..35f19db588 100644 --- a/bootstraptest/test_flow.rb +++ b/bootstraptest/test_flow.rb @@ -534,11 +534,11 @@ assert_equal %Q{ENSURE\n}, %q{ ['[ruby-core:39125]', %q{ class Bug5234 include Enumerable - def each + def each(&block) begin yield :foo ensure - proc + proc(&block) end end end @@ -547,11 +547,11 @@ assert_equal %Q{ENSURE\n}, %q{ ['[ruby-dev:45656]', %q{ class Bug6460 include Enumerable - def each + def each(&block) begin yield :foo ensure - 1.times { Proc.new } + 1.times { Proc.new(&block) } end end end |