aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_tap.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_tap.rb b/Library/Homebrew/test/test_tap.rb
index 8a03a305d..8c2bc5023 100644
--- a/Library/Homebrew/test/test_tap.rb
+++ b/Library/Homebrew/test/test_tap.rb
@@ -63,6 +63,13 @@ class TapTest < Homebrew::TestCase
tap = Tap.fetch("Homebrew", "foo")
assert_kind_of Tap, tap
assert_equal "homebrew/foo", tap.name
+
+ assert_match "Invalid tap name",
+ assert_raises { Tap.fetch("foo") }.message
+ assert_match "Invalid tap name",
+ assert_raises { Tap.fetch("homebrew/homebrew/bar") }.message
+ assert_match "Invalid tap name",
+ assert_raises { Tap.fetch("homebrew", "homebrew/baz") }.message
ensure
Tap.clear_cache
end