diff options
author | Xavier Noria <fxn@hashref.com> | 2010-01-26 22:42:56 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-01-26 22:42:56 +0100 |
commit | 1b2ac25a2fe12d636f90bce1c510667d7accf407 (patch) | |
tree | 907c54491dca7d0650be14fa0aa440d209ea22c4 /activesupport/test/core_ext | |
parent | ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70 (diff) | |
download | rails-1b2ac25a2fe12d636f90bce1c510667d7accf407.tar.gz rails-1b2ac25a2fe12d636f90bce1c510667d7accf407.tar.bz2 rails-1b2ac25a2fe12d636f90bce1c510667d7accf407.zip |
removes unused Class#remove_subclasses
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/object_and_class_ext_test.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/activesupport/test/core_ext/object_and_class_ext_test.rb b/activesupport/test/core_ext/object_and_class_ext_test.rb index e6fbdb637b..4305114f22 100644 --- a/activesupport/test/core_ext/object_and_class_ext_test.rb +++ b/activesupport/test/core_ext/object_and_class_ext_test.rb @@ -41,27 +41,6 @@ class Foo end class ClassExtTest < Test::Unit::TestCase - def test_methods - assert defined?(ClassB) - assert defined?(ClassC) - assert defined?(ClassD) - - ClassA.remove_subclasses - - assert !defined?(ClassB) - assert !defined?(ClassC) - assert !defined?(ClassD) - end - - def test_subclasses_of - cj = ClassJ - assert_equal [ClassJ], Object.subclasses_of(ClassI) - ClassI.remove_subclasses - assert_equal [], Object.subclasses_of(ClassI) - ensure - Object.const_set :ClassJ, cj - end - def test_subclasses_of_should_find_nested_classes assert Object.subclasses_of(ClassK).include?(Nested::ClassL) end |