Analytics spec: avoid ARM-specific strings

This commit is contained in:
Misty De Meo 2021-06-15 20:35:21 -07:00
parent d391331026
commit 93ea8b6350
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C

View File

@ -12,6 +12,7 @@ describe Utils::Analytics do
end
it "returns OS_VERSION and prefix when HOMEBREW_PREFIX is a custom prefix" do
allow(Hardware::CPU).to receive(:type).and_return(:intel)
allow(Homebrew).to receive(:default_prefix?).and_return(false)
expect(described_class.os_arch_prefix_ci).to include("#{OS_VERSION}, #{described_class.custom_prefix_label}")
end