diff options
author | Xavier Noria <fxn@hashref.com> | 2010-01-26 22:51:44 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-01-26 22:51:44 +0100 |
commit | 44afd785c8e390f47bc5b80e5d94309b6b56a13c (patch) | |
tree | bf981d456bdfb0f3d8f5600da1e2e18c28f6ba63 /activesupport/test/core_ext | |
parent | 5f981ff0294ba45aa44ad15aa063970b29aeec44 (diff) | |
download | rails-44afd785c8e390f47bc5b80e5d94309b6b56a13c.tar.gz rails-44afd785c8e390f47bc5b80e5d94309b6b56a13c.tar.bz2 rails-44afd785c8e390f47bc5b80e5d94309b6b56a13c.zip |
removes unused method Class#remove_class
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/class_test.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/activesupport/test/core_ext/class_test.rb b/activesupport/test/core_ext/class_test.rb index 58b745a8b2..a082beb26a 100644 --- a/activesupport/test/core_ext/class_test.rb +++ b/activesupport/test/core_ext/class_test.rb @@ -17,21 +17,4 @@ module Y end class ClassTest < Test::Unit::TestCase - def test_removing_class_in_root_namespace - assert A.is_a?(Class) - Class.remove_class(A) - assert_raise(NameError) { A.is_a?(Class) } - end - - def test_removing_class_in_one_level_namespace - assert X::B.is_a?(Class) - Class.remove_class(X::B) - assert_raise(NameError) { X::B.is_a?(Class) } - end - - def test_removing_class_in_two_level_namespace - assert Y::Z::C.is_a?(Class) - Class.remove_class(Y::Z::C) - assert_raise(NameError) { Y::Z::C.is_a?(Class) } - end end |