Skip to content

Commit

Permalink
Guard for Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 22, 2020
1 parent 147cbfa commit dece237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/lib/envutil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dece237

Please sign in to comment.