diff options
| author | Alyssa Ross | 2017-01-23 17:54:31 +0000 |
|---|---|---|
| committer | GitHub | 2017-01-23 17:54:31 +0000 |
| commit | 2c1fbe16931bd366d33d4419c59fcc8ada9cfe7d (patch) | |
| tree | 7dec252366b87b02b7ad9171e3b618f03ecc2ee7 /Library/Homebrew/test/shell_test.rb | |
| parent | d6932548f89c48e6c33df4c24685ae58904e9b7a (diff) | |
| parent | 62a0c3a6f5cd6577cf9e628524b88b91b9419df7 (diff) | |
| download | brew-2c1fbe16931bd366d33d4419c59fcc8ada9cfe7d.tar.bz2 | |
Merge pull request #1890 from alyssais/global_teardown_env
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 |
