18 lines
567 B
Ruby
18 lines
567 B
Ruby
# typed: false
|
|
# 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
|
|
|
|
# If the location of HOMEBREW_LIBRARY changes
|
|
# keg_relocate.rb, formula_cellar_checks.rb, and this test need to change.
|
|
it "ensures that HOMEBREW_LIBRARY=HOMEBREW_REPOSITORY/Library" do
|
|
expect(HOMEBREW_LIBRARY.to_s).to eq("#{HOMEBREW_REPOSITORY}/Library")
|
|
end
|
|
end
|