summaryrefslogtreecommitdiff
path: root/bootstraptest/test_proc.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-06-10 15:17:54 -0700
committerJeremy Evans <code@jeremyevans.net>2020-06-10 17:49:54 -0700
commitf3e927b0cc1fcbf03abea7f66b1a3736a270a8de (patch)
treedbe7b9d1db555e85171d7cb1eb72a0ca9c3509a9 /bootstraptest/test_proc.rb
parentf48fce4981574f7df33982eb901c94e8f4d6d4ab (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_proc.rb')
-rw-r--r--bootstraptest/test_proc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_proc.rb b/bootstraptest/test_proc.rb
index 6d2c557..6376032 100644
--- a/bootstraptest/test_proc.rb
+++ b/bootstraptest/test_proc.rb
@@ -367,8 +367,8 @@ assert_equal 'ok', %q{
assert_equal 'ok', %q{
class Foo
- def call_it
- p = Proc.new
+ def call_it(&block)
+ p = Proc.new(&block)
p.call
end
end