aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
-rw-r--r--Library/Homebrew/test/testing_env.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index 02264aa39..5f98ace15 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -63,7 +63,9 @@ module Homebrew
end
class TestCase < ::Minitest::Test
+ require "test/helper/env"
require "test/helper/shutup"
+ include Test::Helper::Env
include Test::Helper::Shutup
include VersionAssertions
@@ -112,16 +114,6 @@ module Homebrew
Pathname.new("#{TEST_DIRECTORY}/mach/#{name}.bundle")
end
- def with_environment(partial_env)
- old = ENV.to_hash
- ENV.update partial_env
- begin
- yield
- ensure
- ENV.replace old
- end
- end
-
# Use a stubbed {Formulary::FormulaLoader} to make a given formula be found
# when loading from {Formulary} with `ref`.
def stub_formula_loader(formula, ref = formula.full_name)