From 459741f683cf7b059464631188a9c20abfd7e9d1 Mon Sep 17 00:00:00 2001 From: thibhero Date: Thu, 6 Mar 2025 22:59:58 -0500 Subject: [PATCH] include FileUtils for touch --- Library/Homebrew/test/cmd/upgrade_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/test/cmd/upgrade_spec.rb b/Library/Homebrew/test/cmd/upgrade_spec.rb index 04429e7e40..0b3679ecfd 100644 --- a/Library/Homebrew/test/cmd/upgrade_spec.rb +++ b/Library/Homebrew/test/cmd/upgrade_spec.rb @@ -4,6 +4,7 @@ require "cmd/shared_examples/args_parse" require "cmd/upgrade" RSpec.describe Homebrew::Cmd::UpgradeCmd do + include FileUtils it_behaves_like "parseable arguments" it "upgrades a Formula and cleans up old versions", :integration_test do @@ -53,7 +54,7 @@ RSpec.describe Homebrew::Cmd::UpgradeCmd do expect { brew "upgrade", "--ask" - }.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball5.*/) + }.to output(/.*Formulae\s*\(3\):\s*testball4\s*,?\s*testball5\s*,?\s*testball.*/) .to_stdout.and not_to_output.to_stderr expect(HOMEBREW_CELLAR/"testball/0.1").to be_a_directory