From 4ce99fa0102c352f79071d8ae6aa64078ed1493d Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Sat, 6 Feb 2016 18:40:12 +0100 Subject: [PATCH] tests: remove unnecessary cd --- Library/Homebrew/test/test_integration_cmds.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 09adaf78ef..a9f6517f88 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -152,10 +152,8 @@ class IntegrationCommandTests < Homebrew::TestCase url "https://example.com/testball-0.1.tar.gz" end EOS - HOMEBREW_CACHE.cd do - assert_match(/testball-0\.1.*\.bottle\.tar\.gz/, - cmd_output("bottle", "--no-revision", "testball")) - end + assert_match(/testball-0\.1.*\.bottle\.tar\.gz/, + cmd_output("bottle", "--no-revision", "testball")) ensure cmd("uninstall", "--force", "testball") cmd("cleanup", "--force", "--prune=all")