diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-04 06:11:42 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-04 06:11:42 +0000 |
commit | ed080863d5783b09cdc7aa397d3622e9b2eefc82 (patch) | |
tree | a9482c69c04223362124b96014c8428c5204fa84 /activesupport/test | |
parent | a6a683b0bb7c6019ed38b5d1bba1dac4594dc5da (diff) | |
download | rails-ed080863d5783b09cdc7aa397d3622e9b2eefc82.tar.gz rails-ed080863d5783b09cdc7aa397d3622e9b2eefc82.tar.bz2 rails-ed080863d5783b09cdc7aa397d3622e9b2eefc82.zip |
Just go with Subclasses instead of OnlySubclasses
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3533 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/reloadable_test.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/activesupport/test/reloadable_test.rb b/activesupport/test/reloadable_test.rb index 8366471e4a..1b147e0d18 100644 --- a/activesupport/test/reloadable_test.rb +++ b/activesupport/test/reloadable_test.rb @@ -25,14 +25,14 @@ module ReloadableTestSandbox include Reloadable end - class OnlySubclassesReloadable - include Reloadable::OnlySubclasses + class SubclassesReloadable + include Reloadable::Subclasses end - class ASubclassOfOnlySubclassesReloadable < OnlySubclassesReloadable + class ASubclassOfSubclassesReloadable < SubclassesReloadable end class AnOnlySubclassReloadableClassSubclassingAReloadableClass - include Reloadable::OnlySubclasses + include Reloadable::Subclasses end class ASubclassofAOnlySubclassReloadableClassWhichWasSubclassingAReloadableClass < AnOnlySubclassReloadableClassSubclassingAReloadableClass @@ -51,8 +51,8 @@ class ReloadableTest < Test::Unit::TestCase end def test_only_subclass_reloadable - assert ! ReloadableTestSandbox::OnlySubclassesReloadable.reloadable? - assert ReloadableTestSandbox::ASubclassOfOnlySubclassesReloadable.reloadable? + assert ! ReloadableTestSandbox::SubclassesReloadable.reloadable? + assert ReloadableTestSandbox::ASubclassOfSubclassesReloadable.reloadable? end def test_inside_hierarchy_only_subclass_reloadable @@ -66,11 +66,11 @@ class ReloadableTest < Test::Unit::TestCase AReloadableClassWithSubclasses AReloadableSubclass AClassWhichDefinesItsOwnReloadable - ASubclassOfOnlySubclassesReloadable + ASubclassOfSubclassesReloadable ) non_reloadables = %w( ANonReloadableSubclass - OnlySubclassesReloadable + SubclassesReloadable ) results = Reloadable.reloadable_classes |