mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
style
This commit is contained in:
parent
821d6c694c
commit
96de00e5a7
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ActiveSupport
|
||||
module Dependencies
|
||||
module ZeitwerkIntegration # :nodoc: all
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue