From aa5d1957121bf6321f560754f316c553f60dcaae Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 18 Mar 2023 10:26:01 +0900 Subject: [PATCH] [rubygems/rubygems] @orig_RUBY_ENGINE is always provided now https://github.com/rubygems/rubygems/commit/c5e8ad4823 --- test/rubygems/test_gem_request.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/rubygems/test_gem_request.rb b/test/rubygems/test_gem_request.rb index 404552a88b..0e67f33e0e 100644 --- a/test/rubygems/test_gem_request.rb +++ b/test/rubygems/test_gem_request.rb @@ -478,8 +478,7 @@ ERROR: Certificate is an invalid CA certificate def util_restore_version Object.send :remove_const, :RUBY_ENGINE - Object.send :const_set, :RUBY_ENGINE, @orig_RUBY_ENGINE if - defined?(@orig_RUBY_ENGINE) + Object.send :const_set, :RUBY_ENGINE, @orig_RUBY_ENGINE Object.send :remove_const, :RUBY_PATCHLEVEL Object.send :const_set, :RUBY_PATCHLEVEL, @orig_RUBY_PATCHLEVEL