diff options
| author | Xu Cheng | 2016-01-11 22:07:04 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-01-11 22:07:15 +0800 |
| commit | 9810c2a412526346797f2f1ef60ddbccddeca2cb (patch) | |
| tree | 077ff5d8c583c2637ef8d189e8ed3a63600cd9e1 /Library/Homebrew | |
| parent | 86cc780ea252881cdda4541c3c251af7995224b0 (diff) | |
| download | brew-9810c2a412526346797f2f1ef60ddbccddeca2cb.tar.bz2 | |
test_tap: restore private remote test
Only test it if HOMEBREW_GITHUB_API_TOKEN is set.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/test_tap.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_tap.rb b/Library/Homebrew/test/test_tap.rb index 5a527c537..6e497a070 100644 --- a/Library/Homebrew/test/test_tap.rb +++ b/Library/Homebrew/test/test_tap.rb @@ -5,7 +5,6 @@ class TapTest < Homebrew::TestCase @path = Tap::TAP_DIRECTORY/"homebrew/homebrew-foo" @path.mkpath @tap = Tap.new("Homebrew", "foo") - @tap.stubs(:private?).returns(true) if ENV["HOMEBREW_NO_GITHUB_API"] end def setup_tap_files @@ -116,6 +115,11 @@ class TapTest < Homebrew::TestCase refute_predicate version_tap, :private? end + def test_private_remote + skip "HOMEBREW_GITHUB_API_TOKEN is required" unless ENV["HOMEBREW_GITHUB_API_TOKEN"] + assert_predicate @tap, :private? + end + def test_install_tap_already_tapped_error assert_raises(TapAlreadyTappedError) { @tap.install } end |
