dependency: disable renamed formula warning

This commit is contained in:
Eric Knibbe 2023-12-10 00:57:30 -05:00
parent 5ee6e967da
commit 77c23df526
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class Dependency
end end
def to_formula def to_formula
formula = Formulary.factory(name) formula = Formulary.factory(name, warn: false)
formula.build = BuildOptions.new(options, formula.options) formula.build = BuildOptions.new(options, formula.options)
formula formula
end end

View File

@ -54,7 +54,7 @@ describe Utils::Autoremove do
include_context "with formulae for dependency testing" include_context "with formulae for dependency testing"
before do 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 end
context "when formulae are bottles" do context "when formulae are bottles" do