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/custom-external-command_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library/Homebrew/test/cmd/custom-external-command_spec.rb') diff --git a/Library/Homebrew/test/cmd/custom-external-command_spec.rb b/Library/Homebrew/test/cmd/custom-external-command_spec.rb index 8ccc21fa7..d649786ec 100644 --- a/Library/Homebrew/test/cmd/custom-external-command_spec.rb +++ b/Library/Homebrew/test/cmd/custom-external-command_spec.rb @@ -1,8 +1,6 @@ describe "brew custom-external-command", :integration_test do it "is supported" do - Dir.mktmpdir do |path| - path = Pathname.new(path) - + mktmpdir do |path| cmd = "custom-external-command-#{rand}" file = path/"brew-#{cmd}" -- cgit v1.2.3