2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-02 02:12:40 +02:00
|
|
|
require "cmd/search"
|
2019-03-28 08:35:36 +00:00
|
|
|
require "cmd/shared_examples/args_parse"
|
2018-06-02 02:12:40 +02:00
|
|
|
|
2019-03-28 08:35:36 +00:00
|
|
|
describe "Homebrew.search_args" do
|
|
|
|
it_behaves_like "parseable arguments"
|
|
|
|
end
|
2017-02-23 06:04:59 +01:00
|
|
|
|
2019-03-28 08:35:36 +00:00
|
|
|
describe "brew search", :integration_test do
|
2018-09-14 16:56:23 +02:00
|
|
|
it "falls back to a GitHub tap search when no formula is found", :needs_network do
|
2019-03-28 08:35:36 +00:00
|
|
|
setup_test_formula "testball"
|
2018-05-25 18:03:16 +02:00
|
|
|
setup_remote_tap "homebrew/cask"
|
2018-04-07 20:28:56 +01:00
|
|
|
|
2018-05-25 18:03:16 +02:00
|
|
|
expect { brew "search", "homebrew/cask/firefox" }
|
2017-08-11 15:49:57 -04:00
|
|
|
.to output(/firefox/).to_stdout
|
|
|
|
.and be_a_success
|
|
|
|
end
|
2017-02-23 06:04:59 +01:00
|
|
|
end
|