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
|
2023-03-08 14:55:07 -08:00
|
|
|
|
|
|
|
it "does not require i18n" do
|
|
|
|
# This is a transitive dependency of activesupport, but we don't use it.
|
|
|
|
expect { I18n }.to raise_error(NameError)
|
|
|
|
end
|
|
|
|
|
|
|
|
it "does not require ActiveSupport::Inflector" do
|
|
|
|
# ActiveSupport inflections are slow to load, so we don't use them.
|
|
|
|
expect { ActiveSupport::Inflector }.to raise_error(NameError)
|
|
|
|
end
|
2020-08-18 16:47:20 +01:00
|
|
|
end
|