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.
This commit is contained in:
parent
b2cd52d0b7
commit
a26cde8299
@ -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" => [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user