brew/Library/Homebrew/test/cmd/deps_spec.rb
Douglas Eichelberger 9075cbae62 brew style --fix
2023-04-21 09:58:50 -07:00

22 lines
557 B
Ruby

# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "brew deps" do
it_behaves_like "parseable arguments"
it "outputs all of a Formula's dependencies and their dependencies on separate lines", :integration_test do
setup_test_formula "foo"
setup_test_formula "bar"
setup_test_formula "baz", <<~RUBY
url "https://brew.sh/baz-1.0"
depends_on "bar"
RUBY
expect { brew "deps", "baz" }
.to be_a_success
.and output("bar\nfoo\n").to_stdout
.and not_to_output.to_stderr
end
end