test brew desc -s works w/ API w/o --eval-all

This commit is contained in:
Ryan Rotter 2024-06-30 18:53:57 -04:00
parent 99486c8107
commit 4f6771ccab

View File

@ -30,4 +30,11 @@ RSpec.describe Homebrew::Cmd::Desc do
.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