From dece2379dcc8d8ebbeaf59d6a4fd7eb97b2c3cde Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 22 Dec 2020 16:09:52 +0900 Subject: Guard for Ruby 3.0 --- tests/lib/envutil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/lib/envutil.rb b/tests/lib/envutil.rb index 323d710..63e23ba 100644 --- a/tests/lib/envutil.rb +++ b/tests/lib/envutil.rb @@ -53,7 +53,7 @@ module EnvUtil @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 -- cgit v1.2.1