X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/660e8d8345bfe7f34dfc8db655eff6a0af8bd47f..a15ff495c8c576378f55f58fe22ce9f3c49121e8:/apps/workbench/test/integration_helper.rb 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)