From c8d0a1904d8b878bef4e8f31cc264f25cec09c06 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 15:27:14 -0500 Subject: [PATCH] test/download_strategies/abstract_spec: fix test --- Library/Homebrew/test/download_strategies/abstract_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/test/download_strategies/abstract_spec.rb b/Library/Homebrew/test/download_strategies/abstract_spec.rb index e58b15b49f..c56451daed 100644 --- a/Library/Homebrew/test/download_strategies/abstract_spec.rb +++ b/Library/Homebrew/test/download_strategies/abstract_spec.rb @@ -12,7 +12,7 @@ RSpec.describe AbstractDownloadStrategy do let(:args) { %w[foo bar baz] } specify "#source_modified_time" do - Mktemp.new("mtime") do + mktmpdir("mtime").cd do FileUtils.touch "foo", mtime: Time.now - 10 FileUtils.touch "bar", mtime: Time.now - 100 FileUtils.ln_s "not-exist", "baz"