summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/class.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/t/class.rb b/test/t/class.rb
index 72214a2fc..13845a49f 100644
--- a/test/t/class.rb
+++ b/test/t/class.rb
@@ -304,3 +304,10 @@ assert('Class Undef 2') do
result1 == true and result2 == true
end
+assert('Var undef') do
+ assert_raise(NameError) do
+ a=1
+ undef a
+ end
+end
+