Fix utils/autoremove tests

This commit is contained in:
Rylan Polster 2025-08-25 01:07:53 -04:00
parent f724e00830
commit 9153a22fc9
No known key found for this signature in database

View File

@ -65,7 +65,8 @@ RSpec.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", { warn: false }).and_return(formula_is_build_dep) allow(Formulary).to receive(:factory).with("three", { prefer_stub: false, warn: false })
.and_return(formula_is_build_dep)
end end
context "when formulae are bottles" do context "when formulae are bottles" do