diff options
Diffstat (limited to 'test/ruby/test_variable.rb')
-rw-r--r-- | test/ruby/test_variable.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb index a842c31c3f..990658cb5a 100644 --- a/test/ruby/test_variable.rb +++ b/test/ruby/test_variable.rb @@ -81,4 +81,8 @@ class TestVariable < Test::Unit::TestCase def test_global_variable_0 assert_in_out_err(["-e", "$0='t'*1000;print $0"], "", /\At+\z/, []) end + + def test_global_variable_poped + assert_nothing_raised { eval("$foo; 1") } + end end |