X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dfd5b53fdec053ba4423e25e9b6e0ef0e31b7b5c..de1ab039ce31f8565dae54f8c7c1786230ce3d77:/apps/workbench/test/integration_helper.rb?ds=sidebyside diff --git a/apps/workbench/test/integration_helper.rb b/apps/workbench/test/integration_helper.rb index 86162834c7..30643bc722 100644 --- a/apps/workbench/test/integration_helper.rb +++ b/apps/workbench/test/integration_helper.rb @@ -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)