brew/Library/Homebrew/test/deps_spec.rb
Mike McQuaid f6bf989378 Remove some integration tests
We have an awful lot of integration tests and they are (comparatively)
really slow. Let's kill those that test edge case conditions and focus
on those that test that our functionality works as expected. Edge cases
can be better tested with unit tests.
2018-05-23 14:41:31 +01:00

25 lines
670 B
Ruby

describe "brew deps", :integration_test do
before do
setup_test_formula "foo"
setup_test_formula "bar"
setup_test_formula "baz", <<~EOS
url "https://example.com/baz-1.0"
depends_on "bar"
EOS
end
it "outputs no dependencies for a Formula that has no dependencies" do
expect { brew "deps", "foo" }
.to be_a_success
.and not_to_output.to_stdout
.and not_to_output.to_stderr
end
it "outputs all of a Formula's dependencies and their dependencies on separate lines" do
expect { brew "deps", "baz" }
.to be_a_success
.and output("bar\nfoo\n").to_stdout
.and not_to_output.to_stderr
end
end