From 26f28e7cfaa91fa03af7fae15246cd38f917d443 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Sat, 2 Sep 2006 21:13:30 +0000 Subject: Add ApplicationController special case to Dependencies. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/dependencies_test.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'activesupport/test') diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb index 5960425e8e..9c5ee0146a 100644 --- a/activesupport/test/dependencies_test.rb +++ b/activesupport/test/dependencies_test.rb @@ -404,7 +404,7 @@ class DependenciesTest < Test::Unit::TestCase assert ! Dependencies.autoloaded?("ModuleFolder::NestedClass") assert ! Dependencies.autoloaded?(ModuleFolder) - ModuleFolder::NestedClass + 1 if ModuleFolder::NestedClass # 1 if to avoid warning assert ! Dependencies.autoloaded?(ModuleFolder::NestedClass) end ensure @@ -412,4 +412,12 @@ class DependenciesTest < Test::Unit::TestCase Dependencies.load_once_paths = [] end + def test_application_should_special_case_application_controller + with_loading 'autoloading_fixtures' do + require_dependency 'application' + assert_equal 10, ApplicationController + assert Dependencies.autoloaded?(:ApplicationController) + end + end + end -- cgit v1.2.3