diff options
-rw-r--r-- | activesupport/lib/active_support/dependencies/zeitwerk_integration.rb | 2 | ||||
-rw-r--r-- | railties/test/application/zeitwerk_integration_test.rb | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb index 8b2e1b5391..6892b31a5d 100644 --- a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb +++ b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ActiveSupport module Dependencies module ZeitwerkIntegration # :nodoc: all diff --git a/railties/test/application/zeitwerk_integration_test.rb b/railties/test/application/zeitwerk_integration_test.rb index d44b7f7e4d..628a85acd8 100644 --- a/railties/test/application/zeitwerk_integration_test.rb +++ b/railties/test/application/zeitwerk_integration_test.rb @@ -36,7 +36,7 @@ class ZeitwerkIntegrationTest < ActiveSupport::TestCase end test "ActiveSupport::Dependencies is not decorated in classic mode" do - add_to_config 'config.autoloader = :classic' + add_to_config "config.autoloader = :classic" boot assert_not decorated? @@ -104,7 +104,7 @@ class ZeitwerkIntegrationTest < ActiveSupport::TestCase end test "eager loading loads anything managed by Zeitwerk" do - $zeitwerk_integration_test_user = false + $zeitwerk_integration_test_user = false app_file "app/models/user.rb", "class User; end; $zeitwerk_integration_test_user = true" $zeitwerk_integration_test_extras = false @@ -136,7 +136,7 @@ class ZeitwerkIntegrationTest < ActiveSupport::TestCase ) boot - refute_includes Rails.autoloader.dirs, "#{app_path}/extras" + assert_not_includes Rails.autoloader.dirs, "#{app_path}/extras" assert_includes Rails.once_autoloader.dirs, "#{app_path}/extras" end |