diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-08-08 21:44:34 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-08-08 21:44:34 +0000 |
commit | 4635d33996eaa2158e5149871af17a8612949614 (patch) | |
tree | 9e010ba97caf7d34e2599cd45d2b0e48a0ea6192 /activesupport/test | |
parent | 74165eb6acaca98d4da13409c4e5b5ecc9d260f7 (diff) | |
download | rails-4635d33996eaa2158e5149871af17a8612949614.tar.gz rails-4635d33996eaa2158e5149871af17a8612949614.tar.bz2 rails-4635d33996eaa2158e5149871af17a8612949614.zip |
Checkin forgotten add. Update const_missing handler to avoid double loading files.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/dependencies_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb index bf9aaac8c1..b607093e8e 100644 --- a/activesupport/test/dependencies_test.rb +++ b/activesupport/test/dependencies_test.rb @@ -300,4 +300,13 @@ class DependenciesTest < Test::Unit::TestCase end end + def test_const_missing_should_not_double_load + with_loading 'autoloading_fixtures' do + require_dependency 'counting_loader' + assert_equal 1, $counting_loaded_times + ModuleFolder + assert_equal 1, $counting_loaded_times + end + end + end |