brew/Library/Homebrew/test/cmd/search_spec.rb

18 lines
378 B
Ruby
Raw Normal View History

2020-10-10 14:16:11 +02:00
# typed: false
# frozen_string_literal: true
2018-06-02 02:12:40 +02:00
require "cmd/search"
require "cmd/shared_examples/args_parse"
2018-06-02 02:12:40 +02:00
describe "brew search" do
it_behaves_like "parseable arguments"
2017-02-23 06:04:59 +01:00
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
2017-02-23 06:04:59 +01:00
end