Fix tests
This commit is contained in:
parent
233cef08cf
commit
ebf109ade5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user