Merged master
[arvados.git] / apps / workbench / test / integration_helper.rb
index 86162834c7ccc40b11c4b42fc65b5a04839c1acb..30643bc7224ee81c91f41d6fa1452dfa460f104d 100644 (file)
@@ -36,8 +36,9 @@ class IntegrationTestRunner < MiniTest::Unit
   # Make a hash that unsets Bundle's environment variables.
   # We'll use this environment when we launch Bundle commands in the API
   # server.  Otherwise, those commands will try to use Workbench's gems, etc.
-  @@APIENV = ENV.map { |(key, val)| (key =~ /^BUNDLE_/) ? [key, nil] : nil }.
-    compact.to_h
+  @@APIENV = Hash[ENV.map { |key, val|
+                    (key =~ /^BUNDLE_/) ? [key, nil] : nil
+                  }.compact]
 
   def _system(*cmd)
     if not system(@@APIENV, *cmd)