diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-09-05 22:36:28 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-09-05 22:36:28 +0000 |
commit | 1d554b84f8b669a2be281845a3989b8d0c40b359 (patch) | |
tree | 90c10f269487f9379717f055e3b7018d5f08bd75 /activesupport/test/dependencies_test.rb | |
parent | bd09d9aafb56912ba384a20ac3dfd7bfd7a784e4 (diff) | |
download | rails-1d554b84f8b669a2be281845a3989b8d0c40b359.tar.gz rails-1d554b84f8b669a2be281845a3989b8d0c40b359.tar.bz2 rails-1d554b84f8b669a2be281845a3989b8d0c40b359.zip |
Equate Kernel.const_missing with Object.const_missing. Fixes #5988.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/dependencies_test.rb')
-rw-r--r-- | activesupport/test/dependencies_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb index 9c5ee0146a..c80e35c5f6 100644 --- a/activesupport/test/dependencies_test.rb +++ b/activesupport/test/dependencies_test.rb @@ -420,4 +420,12 @@ class DependenciesTest < Test::Unit::TestCase end end + def test_const_missing_on_kernel_should_fallback_to_object + with_loading 'autoloading_fixtures' do + kls = Kernel::E + assert_equal "E", kls.name + assert_equal kls.object_id, Kernel::E.object_id + end + end + end |