1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/autoloading_fixtures
Simon Coffey b4a9668626 Ensure all-caps nested consts marked as autoloaded
Previously, an autoloaded constant `HTML::SomeClass` would not be marked
as autoloaded by AS::Dependencies. This is because the
`#loadable_constants_for_path` method uses `String#camelize` on the
inferred file path, which in turn means that, unless otherwise directed,
AS::Dependencies watches for loaded constants in the `Html` namespace.

By passing the original qualified constant name to `#load_or_require`,
this inference step is avoided, and the new constant is picked up in the
correct namespace.
2013-08-27 08:20:33 +01:00
..
a
class_folder Fix ActiveSupport tests that depend on run order 2012-08-23 16:00:58 -05:00
html Ensure all-caps nested consts marked as autoloaded 2013-08-27 08:20:33 +01:00
load_path
module_folder
module_with_custom_const_missing/a
application.rb
circular1.rb detect circular constant autoloading 2012-08-28 20:34:39 +02:00
circular2.rb detect circular constant autoloading 2012-08-28 20:34:39 +02:00
class_folder.rb
conflict.rb
counting_loader.rb
cross_site_dependency.rb
e.rb
loads_constant.rb
multiple_constant_file.rb
raises_name_error.rb
raises_no_method_error.rb
requires_constant.rb
should_not_be_required.rb dependencies no longer trigger Kernel#autoload in remove_const [fixes #8213] 2012-11-15 04:36:36 +01:00