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
Xavier Noria 01c9782fa2 better error message for constants autoloaded from anonymous modules [fixes #13204]
load_missing_constant is a private method that basically plays the role of const_missing.
This method has an error condition that is surprising: it raises if the class or module
already has the missing constant. How is it possible that if the class of module has
the constant Ruby has called const_missing in the first place?

The answer is that the from_mod argument is self except for anonymous modules, because
const_missing passes down Object in such case (see the comment in the source code of the
patch for the rationale).

But then, it is better to pass down Object *if Object is also missing the constant* and
otherwise err with an informative message right away.
2013-12-06 19:18:10 +01:00
..
autoloading_fixtures Ensure all-caps nested consts marked as autoloaded 2013-08-27 08:20:33 +01:00
core_ext Fix issue with Kernel#silence_stream leaking file descriptors 2013-12-06 10:24:06 +11:00
dependencies Don't blindly call blame_file! on exceptions in ActiveSupport::Dependencies::Loadable 2013-06-09 18:20:10 -04:00
deprecation Remove deprecated AS::BasicObject, use AS::ProxyObject instead 2013-07-01 22:26:54 -03:00
fixtures JDOM XXE Protection [CVE-2013-1856] 2013-03-15 17:46:15 -07:00
json Added back the encode_big_decimal_as_string option with warning 2013-12-02 17:22:57 -08:00
notifications
testing determine_constant_from_test_name does not swallow NoMethodErrors [Yves Senn] 2013-03-28 10:04:39 +01:00
xml_mini Rewind StringIO instances before be parsed again 2013-06-16 00:32:33 +02:00
abstract_unit.rb Merge pull request #11932 from gaurish/skip-encoding-convertor 2013-08-21 14:49:03 -03:00
autoload_test.rb
benchmarkable_test.rb
broadcast_logger_test.rb
caching_test.rb Merge pull request #11785 from grosser/grosser/file-unless-exist 2013-10-28 19:09:22 -02:00
callback_inheritance_test.rb Removed unused setup 2013-04-10 16:57:12 +05:30
callbacks_test.rb remove deprecation notices 2013-05-15 09:40:58 -07:00
class_cache_test.rb
clean_backtrace_test.rb Fix BacktraceCleaner#noise for multiple silencers. 2013-06-20 19:54:32 +01:00
clean_logger_test.rb
concern_test.rb remove useless duplication in include test 2013-07-22 10:31:14 +02:00
configurable_test.rb
constantize_test_cases.rb Fix #10932. Treat "" and "::" as invalid on constantize 2013-06-14 11:20:15 +04:00
dependencies_test.rb better error message for constants autoloaded from anonymous modules [fixes #13204] 2013-12-06 19:18:10 +01:00
dependencies_test_helpers.rb Fix typo in DependenciesTestHelpers module name 2013-03-12 10:33:32 +05:30
deprecation_test.rb renames the :abort deprecation behaviour to :raise 2013-08-13 01:44:52 +02:00
descendants_tracker_test_cases.rb
descendants_tracker_with_autoloading_test.rb fix some typos in AS 2013-03-30 14:01:42 +05:30
descendants_tracker_without_autoloading_test.rb Improve the test code for #8422 2013-10-24 20:14:30 -02:00
empty_bool.rb
file_update_checker_test.rb
gzip_test.rb
i18n_test.rb
inflector_test.rb wrap test that changes inflections in with_dup 2013-11-28 12:35:20 -05:00
inflector_test_cases.rb wrap test that changes inflections in with_dup 2013-11-28 12:35:20 -05:00
key_generator_test.rb
lazy_load_hooks_test.rb
load_paths_test.rb Drop extra variable from test 2013-06-12 11:18:35 +05:30
log_subscriber_test.rb
logger_test.rb
message_encryptor_test.rb Merge pull request #10635 from vipulnsward/change_to_strict 2013-12-06 08:08:28 -08:00
message_verifier_test.rb ✂️ 2013-12-02 20:02:06 -02:00
multibyte_chars_test.rb
multibyte_conformance.rb
multibyte_test_helpers.rb
multibyte_unicode_database_test.rb
notifications_test.rb Bug fix: Evented notification subscribers can handle published events 2013-05-17 16:27:23 -07:00
number_helper_i18n_test.rb
number_helper_test.rb removed duplicate test case 2013-12-04 22:32:53 +05:30
option_merger_test.rb
ordered_hash_test.rb Moved all JSON core extensions into core_ext/object/json 2013-09-13 03:04:10 -07:00
ordered_options_test.rb fix some typos in AS 2013-03-30 14:01:42 +05:30
rescuable_test.rb Fix some typo in method names, variables 2013-05-26 16:27:05 +05:30
safe_buffer_test.rb
string_inquirer_test.rb
subscriber_test.rb Allow attaching to AS::Notifications namespace up front 2013-09-20 10:14:28 +02:00
tagged_logging_test.rb Revert "make new rails apps log to STDOUT" 2013-03-15 10:38:00 -07:00
test_test.rb Add #travel and #travel_to to AS::TestCase 2013-11-20 16:05:02 +07:00
time_zone_test.rb Add support for localized date references 2013-12-03 10:37:01 -05:00
transliterate_test.rb Be sure to restore the default I18n.locale after changed its value in a test 2013-09-10 19:54:49 +02:00
xml_mini_test.rb Fix order dependent test 2013-09-09 17:11:16 +02:00