2020-10-10 14:16:11 +02:00
|
|
|
# typed: false
|
2020-08-18 16:47:20 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
describe "brew", :integration_test do
|
|
|
|
it "does not invoke `require \"formula\"` at startup" do
|
|
|
|
expect { brew "verify-formula-undefined" }
|
|
|
|
.to not_to_output.to_stdout
|
|
|
|
.and not_to_output.to_stderr
|
|
|
|
.and be_a_success
|
|
|
|
end
|
2020-12-15 12:44:06 -08:00
|
|
|
|
2020-12-16 14:03:10 -08:00
|
|
|
# If the location of HOMEBREW_LIBRARY changes
|
|
|
|
# keg_relocate.rb, formula_cellar_checks.rb, and this test need to change.
|
2020-12-15 12:44:06 -08:00
|
|
|
it "ensures that HOMEBREW_LIBRARY=HOMEBREW_REPOSITORY/Library" do
|
|
|
|
expect(HOMEBREW_LIBRARY.to_s).to eq("#{HOMEBREW_REPOSITORY}/Library")
|
|
|
|
end
|
2020-08-18 16:47:20 +01:00
|
|
|
end
|