From 996af2ce086249e904b2ce95ab2fcd1de7d757be Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 31 Aug 2020 14:58:31 +0900 Subject: Disable deprecation warning by the default [Feature #16345] And `-w` option turns it on. --- test/ruby/test_lambda.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'test/ruby/test_lambda.rb') diff --git a/test/ruby/test_lambda.rb b/test/ruby/test_lambda.rb index 75362e2796..03b501a6c9 100644 --- a/test/ruby/test_lambda.rb +++ b/test/ruby/test_lambda.rb @@ -74,12 +74,6 @@ class TestLambdaParameters < Test::Unit::TestCase assert_raise(ArgumentError, bug9605) {proc(&plus).call [1,2]} end - def test_warning_for_non_literal_blocks - assert_warn(/lambda without a literal block/, '[ruby-core:93482] [Feature #15973]') do - lambda(&:symbol) - end - end - def pass_along(&block) lambda(&block) end -- cgit v1.2.3