From a5549023804a8cef50f71dc2d7a723be8e83f3d1 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 28 Feb 2017 14:50:46 +0100 Subject: Add `mktmpdir` helper method. --- Library/Homebrew/test/cmd/unpack_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library/Homebrew/test/cmd/unpack_spec.rb') diff --git a/Library/Homebrew/test/cmd/unpack_spec.rb b/Library/Homebrew/test/cmd/unpack_spec.rb index 244fc0852..9b2b801bc 100644 --- a/Library/Homebrew/test/cmd/unpack_spec.rb +++ b/Library/Homebrew/test/cmd/unpack_spec.rb @@ -2,9 +2,7 @@ describe "brew unpack", :integration_test do it "unpacks a given Formula's archive" do setup_test_formula "testball" - Dir.mktmpdir do |path| - path = Pathname.new(path) - + mktmpdir do |path| shutup do expect { brew "unpack", "testball", "--destdir=#{path}" } .to be_a_success -- cgit v1.2.3