Alyssa Ross 19e61355b3 tests: remove with_git_env method
A common git environment is now used in all tests, so this is no longer
required.
2017-01-22 20:54:37 +00:00

22 lines
329 B
Ruby

module Test
module Helper
module Env
def copy_env
ENV.to_hash
end
def restore_env(env)
ENV.replace(env)
end
def with_environment(partial_env)
old = copy_env
ENV.update partial_env
yield
ensure
restore_env old
end
end
end
end