aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/diagnostic_test.rb
diff options
context:
space:
mode:
authorAlyssa Ross2017-01-23 17:54:31 +0000
committerGitHub2017-01-23 17:54:31 +0000
commit2c1fbe16931bd366d33d4419c59fcc8ada9cfe7d (patch)
tree7dec252366b87b02b7ad9171e3b618f03ecc2ee7 /Library/Homebrew/test/diagnostic_test.rb
parentd6932548f89c48e6c33df4c24685ae58904e9b7a (diff)
parent62a0c3a6f5cd6577cf9e628524b88b91b9419df7 (diff)
downloadbrew-2c1fbe16931bd366d33d4419c59fcc8ada9cfe7d.tar.bz2
Merge pull request #1890 from alyssais/global_teardown_env
tests: automatically restore ENV in teardown
Diffstat (limited to 'Library/Homebrew/test/diagnostic_test.rb')
-rw-r--r--Library/Homebrew/test/diagnostic_test.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/Library/Homebrew/test/diagnostic_test.rb b/Library/Homebrew/test/diagnostic_test.rb
index 2d1286827..7a1fb25f7 100644
--- a/Library/Homebrew/test/diagnostic_test.rb
+++ b/Library/Homebrew/test/diagnostic_test.rb
@@ -6,15 +6,9 @@ require "diagnostic"
class DiagnosticChecksTest < Homebrew::TestCase
def setup
super
- @env = ENV.to_hash
@checks = Homebrew::Diagnostic::Checks.new
end
- def teardown
- ENV.replace(@env)
- super
- end
-
def test_inject_file_list
assert_equal "foo:\n",
@checks.inject_file_list([], "foo:\n")