From 77c23df52626471ff3502449129a643a3205df88 Mon Sep 17 00:00:00 2001 From: Eric Knibbe Date: Sun, 10 Dec 2023 00:57:30 -0500 Subject: [PATCH] dependency: disable renamed formula warning --- Library/Homebrew/dependency.rb | 2 +- Library/Homebrew/test/utils/autoremove_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index c1e8780e86..1b9c6cba5a 100644 --- a/Library/Homebrew/dependency.rb +++ b/Library/Homebrew/dependency.rb @@ -41,7 +41,7 @@ class Dependency end def to_formula - formula = Formulary.factory(name) + formula = Formulary.factory(name, warn: false) formula.build = BuildOptions.new(options, formula.options) formula end diff --git a/Library/Homebrew/test/utils/autoremove_spec.rb b/Library/Homebrew/test/utils/autoremove_spec.rb index 258eb2b85c..51ce249bb9 100644 --- a/Library/Homebrew/test/utils/autoremove_spec.rb +++ b/Library/Homebrew/test/utils/autoremove_spec.rb @@ -54,7 +54,7 @@ describe Utils::Autoremove do include_context "with formulae for dependency testing" before do - allow(Formulary).to receive(:factory).with("three").and_return(formula_is_build_dep) + allow(Formulary).to receive(:factory).with("three", { warn: false }).and_return(formula_is_build_dep) end context "when formulae are bottles" do