add test for Module#remove_class_variable

This commit is contained in:
skandhas
2012-12-25 12:13:31 +08:00
parent 4eb3ddfd30
commit 3ffe8fe105
+10
View File
@@ -208,6 +208,16 @@ assert('Module#module_eval', '15.2.2.4.35') do
Test4ModuleEval.module_eval{ @b } == 12
end
assert('Module#remove_class_variable', '15.2.2.4.39') do
class Test4RemoveClassVariable
@@cv = 99
end
Test4RemoveClassVariable.remove_class_variable(:@@cv) == 99 and
not Test4RemoveClassVariable.class_variables.include? :@@cv
end
# Not ISO specified
assert('Module#to_s') do