tap: test fetch/validation of invalid tap names
This commit is contained in:
parent
39453691ba
commit
54d1e99ffe
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user