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

Loading different constants can be tricky with all the requires in Homebrew so we want to strengthen the existing checks to make sure that things are not getting required when there is a performance penalty. This expands the existing check to include more constants beyond `Formula` that we don't expect to be defined and that pull in a lot of other dependencies.
11 lines
275 B
Ruby
11 lines
275 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe Homebrew, :integration_test do
|
|
it "does not require slow dependencies at startup" do
|
|
expect { brew "verify-undefined" }
|
|
.to not_to_output.to_stdout
|
|
.and not_to_output.to_stderr
|
|
.and be_a_success
|
|
end
|
|
end
|