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/bundle_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/test/cmd/bundle_spec.rb') diff --git a/Library/Homebrew/test/cmd/bundle_spec.rb b/Library/Homebrew/test/cmd/bundle_spec.rb index 755f9ab3d..13f13485c 100644 --- a/Library/Homebrew/test/cmd/bundle_spec.rb +++ b/Library/Homebrew/test/cmd/bundle_spec.rb @@ -10,9 +10,9 @@ describe "brew bundle", :integration_test, :needs_test_cmd_taps do end end - Dir.mktmpdir do |path| + mktmpdir do |path| FileUtils.touch "#{path}/Brewfile" - Dir.chdir path do + path.cd do expect { brew "bundle", "check" } .to output("The Brewfile's dependencies are satisfied.\n").to_stdout .and not_to_output.to_stderr -- cgit v1.2.3