diff options
| author | Jack Nagel | 2012-08-30 00:09:29 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-30 00:10:02 -0500 |
| commit | 4197a4872d33495183f10a9964f8fbafb3c9415c (patch) | |
| tree | 3589b2a21551d3ab412a367d5b848e14d1af0235 /Library/Homebrew/test/testing_env.rb | |
| parent | 0481473163b2b84fedb8325d9360063c7bf40d74 (diff) | |
| download | homebrew-4197a4872d33495183f10a9964f8fbafb3c9415c.tar.bz2 | |
tests: avoid unnecessary chdir
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
| -rw-r--r-- | Library/Homebrew/test/testing_env.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb index 7042b77e1..1333db5a8 100644 --- a/Library/Homebrew/test/testing_env.rb +++ b/Library/Homebrew/test/testing_env.rb @@ -26,12 +26,7 @@ MACOS_VERSION=10.6 (HOMEBREW_PREFIX+'Library/Formula').mkpath -prevwd = Dir.pwd -Dir.chdir HOMEBREW_PREFIX -at_exit do - Dir.chdir prevwd - HOMEBREW_PREFIX.parent.rmtree -end +at_exit { HOMEBREW_PREFIX.parent.rmtree } # Test fixtures and files can be found relative to this path TEST_FOLDER = Pathname.new(ABS__FILE__).parent.realpath |
