cmd/search_spec: split Linux/macOS tests.
This commit is contained in:
parent
3f6d3e5cf0
commit
7d53104c46
@ -8,7 +8,7 @@ describe "Homebrew.search_args" do
|
||||
end
|
||||
|
||||
describe "brew search", :integration_test do
|
||||
it "falls back to a GitHub tap search when no formula is found", :needs_network do
|
||||
it "falls back to a GitHub tap search when no formula is found", :needs_macos, :needs_network do
|
||||
setup_test_formula "testball"
|
||||
setup_remote_tap "homebrew/cask"
|
||||
|
||||
@ -16,4 +16,13 @@ describe "brew search", :integration_test do
|
||||
.to output(/firefox/).to_stdout
|
||||
.and be_a_success
|
||||
end
|
||||
|
||||
# doesn't actually need Linux but only want one integration test per-OS.
|
||||
it "finds formula in search", :need_linux do
|
||||
setup_test_formula "testball"
|
||||
|
||||
expect { brew "search", "testball" }
|
||||
.to output(/testball/).to_stdout
|
||||
.and be_a_success
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user