From 826aca72175955ef9775761d256458d70d9a8128 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Wed, 8 Mar 2023 14:55:07 -0800 Subject: [PATCH] Add tests --- Library/Homebrew/test/global_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Library/Homebrew/test/global_spec.rb b/Library/Homebrew/test/global_spec.rb index 6c34ca8838..a8469f9b58 100644 --- a/Library/Homebrew/test/global_spec.rb +++ b/Library/Homebrew/test/global_spec.rb @@ -8,4 +8,14 @@ describe "brew", :integration_test do .and not_to_output.to_stderr .and be_a_success end + + 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 end