aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/test/test_tap.rb6
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