1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

support multi-run for test/ruby/test_eval.rb

need to remove a Constant.
This commit is contained in:
Koichi Sasada 2020-01-28 13:39:50 +09:00
parent 5f7be6243a
commit 962c7abb13

View file

@ -347,6 +347,10 @@ class TestEval < Test::Unit::TestCase
assert_equal(55, eval("foo22"))
assert_equal(55, foo22)
}.call
self.class.class_eval do
remove_const :EvTest
end
end
def test_nil_instance_eval_cvar