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/commands_test.rb | |
| parent | 6e0f1366b014b285799c9bb9c311c6345bcd666b (diff) | |
| download | brew-116ed3ec80b6d1b9d6178f25793cfcaaaa161308.tar.bz2 | |
tests: automatically restore ENV in teardown
Diffstat (limited to 'Library/Homebrew/test/commands_test.rb')
| -rw-r--r-- | Library/Homebrew/test/commands_test.rb | 4 | 
1 files changed, 0 insertions, 4 deletions
diff --git a/Library/Homebrew/test/commands_test.rb b/Library/Homebrew/test/commands_test.rb index 3d7c16e58..5f5dc9586 100644 --- a/Library/Homebrew/test/commands_test.rb +++ b/Library/Homebrew/test/commands_test.rb @@ -47,8 +47,6 @@ class CommandsTests < Homebrew::TestCase    end    def test_external_commands -    env = ENV.to_hash -      mktmpdir do |dir|        %w[brew-t1 brew-t2.rb brew-t3.py].each do |file|          path = "#{dir}/#{file}" @@ -67,8 +65,6 @@ class CommandsTests < Homebrew::TestCase          "Executable files with a non Ruby extension shoudn't be included"        refute cmds.include?("t4"), "Non-executable files shouldn't be included"      end -  ensure -    ENV.replace(env)    end    def test_internal_command_path  | 
