aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/utils
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/utils')
-rw-r--r--Library/Homebrew/test/utils/bottles/collector_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/test/utils/bottles/collector_spec.rb b/Library/Homebrew/test/utils/bottles/collector_spec.rb
index 73757234e..08484e545 100644
--- a/Library/Homebrew/test/utils/bottles/collector_spec.rb
+++ b/Library/Homebrew/test/utils/bottles/collector_spec.rb
@@ -27,5 +27,19 @@ describe Utils::Bottles::Collector do
subject[:mountain_lion] = "bar"
expect(subject.fetch_checksum_for(:mountain_lion)).to eq(["bar", :mountain_lion])
end
+
+ it "finds '_or_later' tags", :needs_macos do
+ subject[:lion_or_later] = "foo"
+ expect(subject.fetch_checksum_for(:mountain_lion)).to eq(["foo", :lion_or_later])
+ expect(subject.fetch_checksum_for(:snow_leopard)).to be nil
+ end
+
+ it "finds '_altivec' tags", :needs_macos do
+ subject[:tiger_altivec] = "foo"
+ expect(subject.fetch_checksum_for(:tiger_g4)).to eq(["foo", :tiger_altivec])
+ expect(subject.fetch_checksum_for(:tiger_g4e)).to eq(["foo", :tiger_altivec])
+ expect(subject.fetch_checksum_for(:tiger_g5)).to eq(["foo", :tiger_altivec])
+ expect(subject.fetch_checksum_for(:tiger_g3)).to be nil
+ end
end
end