brew/Library/Homebrew/test/cmd/search_spec.rb
Mike McQuaid a743e9277f
workflows/tests: faster, more reliable tests.
- Extract update tests into separate tests.
- Make `brew tests --online` run only once in its own job. This job
  could be made non-required to fight flakiness.
- Split up the various macOS runs into several steps now that we have
  more parallel macOS workers available.
- Cleanup some flaky tests.
2023-02-17 15:26:18 +00:00

18 lines
378 B
Ruby

# typed: false
# frozen_string_literal: true
require "cmd/search"
require "cmd/shared_examples/args_parse"
describe "brew search" do
it_behaves_like "parseable arguments"
it "finds formula in search", :integration_test do
setup_test_formula "testball"
expect { brew "search", "testball" }
.to output(/testball/).to_stdout
.and be_a_success
end
end