Changeset 4729
- Timestamp:
- 08/08/06 21:44:34 (2 years ago)
- Files:
-
- trunk/activesupport/lib/active_support/dependencies.rb (modified) (1 diff)
- trunk/activesupport/test/dependencies_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/dependencies.rb
r4728 r4729 156 156 157 157 file_path = search_for_autoload_file(path_suffix) 158 if file_path # We found a matching file to load158 if file_path #&& ! loaded.include?(file_path) # We found a matching file to load 159 159 require_or_load file_path, qualified_name 160 160 raise LoadError, "Expected #{file_path} to define #{qualified_name}" unless from_mod.const_defined?(const_name) trunk/activesupport/test/dependencies_test.rb
r4728 r4729 301 301 end 302 302 303 def test_const_missing_should_not_double_load 304 with_loading 'autoloading_fixtures' do 305 require_dependency 'counting_loader' 306 assert_equal 1, $counting_loaded_times 307 ModuleFolder 308 assert_equal 1, $counting_loaded_times 309 end 310 end 311 303 312 end