aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_tap.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-03-08 11:43:39 +0000
committerXu Cheng2016-03-08 20:52:11 +0800
commit041c8502c5ec6f877211202313a5233132834d0b (patch)
tree8c7cdc999454094a08a35ac3432b92a9ce92e469 /Library/Homebrew/test/test_tap.rb
parent0cbc2857019c31c01e4ab6901b59327884cc029d (diff)
downloadbrew-041c8502c5ec6f877211202313a5233132834d0b.tar.bz2
Set HOMEBREW_API_TOKEN from Git when available.
As requested in Homebrew/homebrew#46578. Falls back to existing functionality. Closes Homebrew/homebrew#46578. Closes Homebrew/homebrew#49846. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/test/test_tap.rb')
-rw-r--r--Library/Homebrew/test/test_tap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_tap.rb b/Library/Homebrew/test/test_tap.rb
index 56c87de83..18fe8709d 100644
--- a/Library/Homebrew/test/test_tap.rb
+++ b/Library/Homebrew/test/test_tap.rb
@@ -155,7 +155,7 @@ class TapTest < Homebrew::TestCase
end
def test_private_remote
- skip "HOMEBREW_GITHUB_API_TOKEN is required" unless ENV["HOMEBREW_GITHUB_API_TOKEN"]
+ skip "HOMEBREW_GITHUB_API_TOKEN is required" unless GitHub.api_credentials
assert_predicate @tap, :private?
end