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 added some (pointless) test cases to dependency loading, the more the merrier 2006-02-04 21:24:40 +00:00
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 Fix a bug where requires inside of autoloads were being added to the autoloaded_constants list, causing mayhem. [#5165 state:resolved] 2010-07-26 00:59:54 -07:00
module_folder Dependencies can autoload directories of nested classes. 2006-08-16 09:18:17 +00:00
module_with_custom_const_missing/a Add forgotten files; Fix double loading errors. 2006-08-08 22:08:09 +00:00
application.rb Add forgotten file 2006-09-03 19:39:08 +00:00
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 Test autoloading nested subclass of parent. 2006-11-16 22:50:46 +00:00
conflict.rb New dependencies implementation 2006-08-08 21:21:04 +00:00
counting_loader.rb Add forgotten files; Fix double loading errors. 2006-08-08 22:08:09 +00:00
cross_site_dependency.rb Checkin failing test case related to load once paths 2006-12-24 14:41:29 +00:00
e.rb Added reusable reloading support through the inclusion of the Relodable module that all subclasses of ActiveRecord::Base, ActiveRecord::Observer, ActiveController::Base, and ActionMailer::Base automatically gets [DHH]. Added auto-loading support for classes in modules, so Conductor::Migration will look for conductor/migration.rb and Conductor::Database::Settings will look for conductor/database/settings.rb [Nicholas Seckar]. Refactored extensions to module, class, and object in active support [DHH] 2006-01-29 00:37:39 +00:00
loads_constant.rb This is for making sure const_missing is triggered without warnings 2010-07-26 12:51:52 -03:00
multiple_constant_file.rb Update dependencies to allow constants to be defined alongside their siblings. 2006-11-01 23:21:13 +00:00
raises_name_error.rb Failing test for autoloading shadowed exceptions. 2006-11-06 19:23:30 +00:00
raises_no_method_error.rb Fix warning and incorrect test trigger 2006-11-06 23:45:39 +00:00
requires_constant.rb Fix a bug where requires inside of autoloads were being added to the autoloaded_constants list, causing mayhem. [#5165 state:resolved] 2010-07-26 00:59:54 -07:00
should_not_be_required.rb dependencies no longer trigger Kernel#autoload in remove_const [fixes #8213] 2012-11-15 04:36:36 +01:00