diff --git a/Library/Homebrew/test/cmd/desc_spec.rb b/Library/Homebrew/test/cmd/desc_spec.rb index 1ceb790260964f..37d3408bcbb352 100644 --- a/Library/Homebrew/test/cmd/desc_spec.rb +++ b/Library/Homebrew/test/cmd/desc_spec.rb @@ -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