diff options
| author | Martin Afanasjew | 2016-07-27 03:08:14 +0200 |
|---|---|---|
| committer | Martin Afanasjew | 2016-07-27 21:25:13 +0200 |
| commit | 54d1e99ffe5046209ade523017cd84dd4394e0f5 (patch) | |
| tree | 2268009e03d1f7e363a18fc188eb4465d609cb83 /Library | |
| parent | 39453691ba3208dbd2e6ce1fd341d430b31dff55 (diff) | |
| download | brew-54d1e99ffe5046209ade523017cd84dd4394e0f5.tar.bz2 | |
tap: test fetch/validation of invalid tap names
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_tap.rb | 7 |
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 |
