aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/dependencies_test.rb10
1 files changed, 9 insertions, 1 deletions
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