From dece2379dcc8d8ebbeaf59d6a4fd7eb97b2c3cde Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 22 Dec 2020 16:09:52 +0900 Subject: [PATCH] Guard for Ruby 3.0 --- tests/lib/envutil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/envutil.rb b/tests/lib/envutil.rb index 323d7100d..63e23ba95 100644 --- a/tests/lib/envutil.rb +++ b/tests/lib/envutil.rb @@ -53,7 +53,7 @@ def capture_global_values @original_internal_encoding = Encoding.default_internal @original_external_encoding = Encoding.default_external @original_verbose = $VERBOSE - @original_warning = %i[deprecated experimental].to_h {|i| [i, Warning[i]]} + @original_warning = %i[deprecated experimental].to_h {|i| [i, Warning[i]]} if RUBY_VERSION > "2.7" end end