aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMisty De Meo2017-08-31 22:29:36 -0700
committerMisty De Meo2017-08-31 22:29:43 -0700
commita26cde8299c998043bf7073341b029b609135e8a (patch)
treec9257722cc7c1c8a89474482f207d3389257283e /Library/Homebrew/test
parentb2cd52d0b7f0fd7648f875a61c05a8b13279d281 (diff)
downloadbrew-a26cde8299c998043bf7073341b029b609135e8a.tar.bz2
search_remote_tap spec: fix test offline
Even though we stub the JSON response, the method being tested always returns [] immediately if HOMEBREW_NO_GITHUB_API is set.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/cmd/search_remote_tap_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cmd/search_remote_tap_spec.rb b/Library/Homebrew/test/cmd/search_remote_tap_spec.rb
index b0beb122c..eb256b924 100644
--- a/Library/Homebrew/test/cmd/search_remote_tap_spec.rb
+++ b/Library/Homebrew/test/cmd/search_remote_tap_spec.rb
@@ -2,6 +2,9 @@ require "cmd/search"
describe Homebrew do
specify "#search_taps" do
+ # Otherwise the tested method returns [], regardless of our stub
+ ENV.delete("HOMEBREW_NO_GITHUB_API")
+
json_response = {
"items" => [
{