2019-03-28 08:35:36 +00:00
|
|
|
require "cmd/shared_examples/args_parse"
|
|
|
|
|
|
|
|
describe "Homebrew.leaves_args" do
|
|
|
|
it_behaves_like "parseable arguments"
|
|
|
|
end
|
|
|
|
|
2017-02-23 06:03:40 +01:00
|
|
|
describe "brew leaves", :integration_test do
|
|
|
|
it "prints all Formulae that are not dependencies of other Formulae" do
|
|
|
|
setup_test_formula "foo"
|
|
|
|
setup_test_formula "bar"
|
|
|
|
(HOMEBREW_CELLAR/"foo/0.1/somedir").mkpath
|
|
|
|
|
|
|
|
expect { brew "leaves" }
|
2019-03-28 08:35:36 +00:00
|
|
|
.to output("foo\n").to_stdout
|
2017-02-23 06:03:40 +01:00
|
|
|
.and not_to_output.to_stderr
|
|
|
|
.and be_a_success
|
|
|
|
end
|
|
|
|
end
|