summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-06-19 19:31:18 +0900
committergit <[email protected]>2024-06-19 11:42:35 +0000
commit321ed86e93a34833bd869c6bc3f52d84b8ecce35 (patch)
treeedfe39e0d818fef0484cc58849862451b5b4f5dd
parent57e15074fe90e78afc9eadd8287f777d83a8ce6d (diff)
[rubygems/rubygems] Do not set previously unset value
https://github.com/rubygems/rubygems/commit/0148cce153
-rw-r--r--test/rubygems/test_gem_installer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb
index 61609a26c9..52498cdd6d 100644
--- a/test/rubygems/test_gem_installer.rb
+++ b/test/rubygems/test_gem_installer.rb
@@ -2577,6 +2577,7 @@ end
yield
ensure
- RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_libruby_relative
+ # RbConfig::CONFIG values are strings only, there should not be a nil.
+ RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_libruby_relative if orig_libruby_relative
end
end