aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_bottle_collector.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_bottle_collector.rb b/Library/Homebrew/test/test_bottle_collector.rb
index 7a597404c..34efe3efd 100644
--- a/Library/Homebrew/test/test_bottle_collector.rb
+++ b/Library/Homebrew/test/test_bottle_collector.rb
@@ -20,6 +20,16 @@ class BottleCollectorTests < Homebrew::TestCase
assert_nil checksum_for(:foo)
end
+ def test_collector_returns_nil_for_no_match
+ @collector[:lion] = "foo"
+ assert_nil checksum_for(:foo)
+ end
+
+ def test_collector_returns_nil_for_no_match_when_later_tag_present
+ @collector[:lion_or_later] = "foo"
+ assert_nil checksum_for(:foo)
+ end
+
def test_collector_finds_or_later_tags
@collector[:lion_or_later] = "foo"
assert_equal ['foo', :lion_or_later], checksum_for(:mountain_lion)