From 2a03f2059c38434f9e9ba4510a470e0d60436935 Mon Sep 17 00:00:00 2001 From: botantony Date: Tue, 22 Apr 2025 22:31:45 +0200 Subject: [PATCH] completions: fix tests Signed-off-by: botantony --- Library/Homebrew/test/completions_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/test/completions_spec.rb b/Library/Homebrew/test/completions_spec.rb index 5180762217..481ed03414 100644 --- a/Library/Homebrew/test/completions_spec.rb +++ b/Library/Homebrew/test/completions_spec.rb @@ -332,7 +332,7 @@ RSpec.describe Homebrew::Completions do '--quiet[Make some output more quiet]' \\ '--verbose[Make some output more verbose]' \\ - formula \\ - '*::formula:__brew_formulae' + '*:formula:__brew_formulae' } COMPLETION end @@ -357,10 +357,10 @@ RSpec.describe Homebrew::Completions do it "returns appropriate completion for a command with multiple named arg types" do completion = described_class.generate_zsh_subcommand_completion("livecheck") expect(completion).to match( - /'*::formula:__brew_formulae'/, + /'*:formula:__brew_formulae'/, ) expect(completion).to match( - /'*::cask:__brew_casks'\n}$/, + /'*:cask:__brew_casks'\n}$/, ) end end