brew/Library/Homebrew/test/cmd/search_spec.rb
Mike McQuaid d1be288418
some needs_network specs: temporarily disable.
These are absurdly flaky right now so let's disable them.
2023-01-20 17:41:07 +00:00

31 lines
872 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"
# TODO: consider re-enabling when/if we can make these not flaky.
#
# it "falls back to a GitHub tap search when no formula is found",
# :integration_test, :needs_macos, :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
# doesn't actually need Linux but only want one integration test per-OS.
it "finds formula in search", :integration_test, :need_linux do
setup_test_formula "testball"
expect { brew "search", "testball" }
.to output(/testball/).to_stdout
.and be_a_success
end
end