brew/Library/Homebrew/test/cmd/deps_spec.rb
Mike McQuaid 2f1c6e9ca5
Cleanup cmd/* tests
- Test `_args` methods
- Remove multiple integration tests (except where essential
  e.g. `install`, `help`)
2019-03-28 08:35:36 +00:00

16 lines
443 B
Ruby

describe "brew deps", :integration_test do
it "outputs all of a Formula's dependencies and their dependencies on separate lines" 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