Merge pull request #16310 from EricFromCanada/dependency-warn-false

dependency: disable renamed formula warning
This commit is contained in:
Mike McQuaid 2023-12-11 19:29:41 +00:00 committed by GitHub
commit 4c20298ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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