Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test for ARM #9067

Merged
merged 1 commit into from Nov 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions Library/Homebrew/test/utils/bottles/bottles_spec.rb
Expand Up @@ -5,9 +5,13 @@

describe Utils::Bottles do
describe "#tag", :needs_macos do
it "returns :catalina on Catalina" do
allow(MacOS).to receive(:version).and_return(MacOS::Version.new("10.15"))
expect(described_class.tag).to eq(:catalina)
it "returns :big_sur or :arm64_big_sur on Big Sur" do
allow(MacOS).to receive(:version).and_return(MacOS::Version.new("11.0"))
if Hardware::CPU.intel?
expect(described_class.tag).to eq(:big_sur)
else
expect(described_class.tag).to eq(:arm64_big_sur)
end
end
end
end