From 4f6771ccabc5ebcb6c62b998d4c56167306f36e7 Mon Sep 17 00:00:00 2001 From: Ryan Rotter Date: Sun, 30 Jun 2024 18:53:57 -0400 Subject: [PATCH] test `brew desc -s` works w/ API w/o `--eval-all` --- Library/Homebrew/test/cmd/desc_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/Homebrew/test/cmd/desc_spec.rb b/Library/Homebrew/test/cmd/desc_spec.rb index 1ceb790260964..512f35fbb12ce 100644 --- a/Library/Homebrew/test/cmd/desc_spec.rb +++ b/Library/Homebrew/test/cmd/desc_spec.rb @@ -30,4 +30,11 @@ .to output(/testball: Some test/).to_stdout .and not_to_output.to_stderr end + + it "successfully searches without --eval-all, with API", :integration_test do + setup_test_formula "testball" + + expect { brew "desc", "--search", "testball", "HOMEBREW_NO_INSTALL_FROM_API" => nil } + .to be_a_success + end end