diff options
author | Xavier Noria <fxn@hashref.com> | 2010-01-26 22:37:55 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-01-26 22:37:55 +0100 |
commit | ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70 (patch) | |
tree | 141c0f7439721a3cdcd4fde1cdf856c841d1cb94 /activesupport/test/core_ext | |
parent | c6104e6514d7e0af8dca92fcb40a6adb72e16611 (diff) | |
download | rails-ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70.tar.gz rails-ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70.tar.bz2 rails-ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70.zip |
removes unused method Class#subclasses
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/class_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activesupport/test/core_ext/class_test.rb b/activesupport/test/core_ext/class_test.rb index bb4eb3c7d5..58b745a8b2 100644 --- a/activesupport/test/core_ext/class_test.rb +++ b/activesupport/test/core_ext/class_test.rb @@ -34,14 +34,4 @@ class ClassTest < Test::Unit::TestCase Class.remove_class(Y::Z::C) assert_raise(NameError) { Y::Z::C.is_a?(Class) } end - - def test_retrieving_subclasses - @parent = eval("class D; end; D") - @sub = eval("class E < D; end; E") - @subofsub = eval("class F < E; end; F") - assert_equal 2, @parent.subclasses.size - assert_equal [@subofsub.to_s], @sub.subclasses - assert_equal [], @subofsub.subclasses - assert_equal [@sub.to_s, @subofsub.to_s].sort, @parent.subclasses.sort - end end |