aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_variable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_variable.rb')
-rw-r--r--test/ruby/test_variable.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb
index 990658cb5a..53e00301dc 100644
--- a/test/ruby/test_variable.rb
+++ b/test/ruby/test_variable.rb
@@ -85,4 +85,8 @@ class TestVariable < Test::Unit::TestCase
def test_global_variable_poped
assert_nothing_raised { eval("$foo; 1") }
end
+
+ def test_constant_poped
+ assert_nothing_raised { eval("TestVariable::Gods; 1") }
+ end
end