Skip to content

Commit

Permalink
desc_spec: expect search to succeed w/o eval-all
Browse files Browse the repository at this point in the history
  • Loading branch information
rrotter committed Jun 29, 2024
1 parent 72c26c6 commit ec5d876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/test/cmd/desc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
.and be_a_success
end

it "errors when searching without --eval-all", :integration_test do
it "successfully searches without --eval-all", :integration_test do
setup_test_formula "testball"

expect { brew "desc", "--search", "testball" }
.to output(/`brew desc --search` needs `--eval-all` passed or `HOMEBREW_EVAL_ALL` set!/).to_stderr
.and be_a_failure
.to output(/testball: Some test/).to_stdout
.and not_to_output.to_stderr
end

it "successfully searches with --search --eval-all", :integration_test do
Expand Down

0 comments on commit ec5d876

Please sign in to comment.