summaryrefslogtreecommitdiff
path: root/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 5a630b12..3161dbbb 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -360,7 +360,7 @@ class Minitest::Test
#if jruby? && (Gem::Version.new JRUBY_VERSION) < (Gem::Version.new '9.2.10.0')
if jruby?
begin
- old_env, env = ENV.merge, (ENV.merge env)
+ env = (old_env = ENV.to_h).merge env
env.each {|key, val| env.delete key if val.nil? } if env.value? nil
ENV.replace env
popen [cmd, *args, opts], &block