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/shell_test.rb | |
| parent | 6e0f1366b014b285799c9bb9c311c6345bcd666b (diff) | |
| download | brew-116ed3ec80b6d1b9d6178f25793cfcaaaa161308.tar.bz2 | |
tests: automatically restore ENV in teardown
Diffstat (limited to 'Library/Homebrew/test/shell_test.rb')
| -rw-r--r-- | Library/Homebrew/test/shell_test.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Library/Homebrew/test/shell_test.rb b/Library/Homebrew/test/shell_test.rb index 877acb5c8..a32d09863 100644 --- a/Library/Homebrew/test/shell_test.rb +++ b/Library/Homebrew/test/shell_test.rb @@ -37,7 +37,6 @@ class ShellSmokeTest < Homebrew::TestCase end def prepend_path_shell(shell, path, fragment) - original_shell = ENV["SHELL"] ENV["SHELL"] = shell prepend_message = Utils::Shell.prepend_path_in_shell_profile(path) @@ -45,8 +44,6 @@ class ShellSmokeTest < Homebrew::TestCase prepend_message.start_with?(fragment), "#{shell}: expected #{prepend_message} to match #{fragment}" ) - - ENV["SHELL"] = original_shell end def test_prepend_path_in_shell_profile |
