diff options
| author | Martin Afanasjew | 2016-01-04 15:03:19 +0100 |
|---|---|---|
| committer | Martin Afanasjew | 2016-01-04 16:26:36 +0100 |
| commit | c5f0003061c6ddb76dd672501ecc58b5476a62fb (patch) | |
| tree | 7c9318e145e8915458a3c3e71e9a310f9ad67d1f /Library | |
| parent | bd4f633673e12793d8ec18a45c352a2d4d1fc382 (diff) | |
| download | brew-c5f0003061c6ddb76dd672501ecc58b5476a62fb.tar.bz2 | |
test: don't fail if GitHub API is unavailable
Tests shouldn't fail in case of an unavailable network or a deliberately
disabled access to the GitHub API.
Closes Homebrew/homebrew#47670.
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_tap.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_tap.rb b/Library/Homebrew/test/test_tap.rb index bd329c1d2..46e14017d 100644 --- a/Library/Homebrew/test/test_tap.rb +++ b/Library/Homebrew/test/test_tap.rb @@ -5,6 +5,7 @@ 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 |
