mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

In a number of Cask specs, the value of the `homepage` stanza is currently set to https://example.com. As of 2018-11-28, the TLS certificate served by example.com seems to be expired, possibly due to an oversight on ICANN’s side. While the certificate is certainly going to be renewed soon, it would be desirable for Homebrew’s test result to be less dependent on ICANN’s actions. This commit changes the homepages of all test Casks to http://brew.sh, whose domain and TLS certificate are both controlled by Homebrew.
25 lines
668 B
Ruby
25 lines
668 B
Ruby
describe "brew deps", :integration_test do
|
|
before 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
|
|
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
|