diff options
| author | Alyssa Ross | 2017-01-21 14:57:44 +0000 |
|---|---|---|
| committer | Alyssa Ross | 2017-01-22 19:53:58 +0000 |
| commit | 116ed3ec80b6d1b9d6178f25793cfcaaaa161308 (patch) | |
| tree | 5ba702bfb1da06de3adf717f867537f667bacb52 /Library/Homebrew/test/os | |
| parent | 6e0f1366b014b285799c9bb9c311c6345bcd666b (diff) | |
| download | brew-116ed3ec80b6d1b9d6178f25793cfcaaaa161308.tar.bz2 | |
tests: automatically restore ENV in teardown
Diffstat (limited to 'Library/Homebrew/test/os')
| -rw-r--r-- | Library/Homebrew/test/os/mac/diagnostic_test.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Library/Homebrew/test/os/mac/diagnostic_test.rb b/Library/Homebrew/test/os/mac/diagnostic_test.rb index 284d293ca..5f467e87b 100644 --- a/Library/Homebrew/test/os/mac/diagnostic_test.rb +++ b/Library/Homebrew/test/os/mac/diagnostic_test.rb @@ -6,15 +6,9 @@ require "diagnostic" class OSMacDiagnosticChecksTest < Homebrew::TestCase def setup super - @env = ENV.to_hash @checks = Homebrew::Diagnostic::Checks.new end - def teardown - ENV.replace(@env) - super - end - def test_check_for_other_package_managers MacOS.stubs(:macports_or_fink).returns ["fink"] assert_match "You have MacPorts or Fink installed:", |
