diff --git a/Library/Homebrew/test/formulary_spec.rb b/Library/Homebrew/test/formulary_spec.rb index 8e0708d692..0fc043fe6b 100644 --- a/Library/Homebrew/test/formulary_spec.rb +++ b/Library/Homebrew/test/formulary_spec.rb @@ -326,7 +326,6 @@ describe Formulary do it "returns a Formula with variations when given a name", :needs_macos do allow(Homebrew::API::Formula).to receive(:all_formulae).and_return formula_json_contents(variations_json) - allow(Utils::Bottles).to receive(:tag).and_return(:arm64_monterey) formula = described_class.factory(formula_name) expect(formula).to be_kind_of(Formula) @@ -337,12 +336,11 @@ describe Formulary do it "returns a Formula without duplicated deps and uses_from_macos with variations on Linux", :needs_linux do allow(Homebrew::API::Formula) .to receive(:all_formulae).and_return formula_json_contents(linux_variations_json) - allow(Utils::Bottles).to receive(:tag).and_return(:arm64_monterey) formula = described_class.factory(formula_name) expect(formula).to be_kind_of(Formula) expect(formula.deps.count).to eq 5 - expect(formula.deps.map(&:name).include?("variations_dep")).to be true + expect(formula.deps.map(&:name).include?("uses_from_macos_dep")).to be true end end end