summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_eval.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_eval.rb b/test/ruby/test_eval.rb
index b1cb562175..bf551c6845 100644
--- a/test/ruby/test_eval.rb
+++ b/test/ruby/test_eval.rb
@@ -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