brew/Library/Homebrew/test/cmd/search_spec.rb
Mike McQuaid 2f1c6e9ca5
Cleanup cmd/* tests
- Test `_args` methods
- Remove multiple integration tests (except where essential
  e.g. `install`, `help`)
2019-03-28 08:35:36 +00:00

18 lines
471 B
Ruby

require "cmd/search"
require "cmd/shared_examples/args_parse"
describe "Homebrew.search_args" do
it_behaves_like "parseable arguments"
end
describe "brew search", :integration_test do
it "falls back to a GitHub tap search when no formula is found", :needs_network do
setup_test_formula "testball"
setup_remote_tap "homebrew/cask"
expect { brew "search", "homebrew/cask/firefox" }
.to output(/firefox/).to_stdout
.and be_a_success
end
end