Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5541

Show
Ignore:
Timestamp:
11/16/06 22:50:46 (2 years ago)
Author:
bitsweat
Message:

Test autoloading nested subclass of parent.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/test/autoloading_fixtures/class_folder.rb

    r4769 r5541  
    11class ClassFolder 
     2  ConstantInClassFolder = 'indeed' 
    23end 
  • trunk/activesupport/test/dependencies_test.rb

    r5464 r5541  
    178178    with_loading 'autoloading_fixtures' do 
    179179      assert_kind_of Class, ClassFolder::InlineClass 
     180      Object.send :remove_const, :ClassFolder 
     181    end 
     182  end 
     183 
     184  def test_class_with_nested_inline_subclass_of_parent 
     185    with_loading 'autoloading_fixtures' do 
     186      assert_kind_of Class, ClassFolder::ClassFolderSubclass 
     187      assert_kind_of Class, ClassFolder 
     188      assert_equal 'indeed', ClassFolder::ClassFolderSubclass::ConstantInClassFolder 
    180189      Object.send :remove_const, :ClassFolder 
    181190    end