test/eval.c: add test for #5528

parent 43f9901e
......@@ -158,4 +158,7 @@ assert('Module#class_eval with string') do
cc = c.new
assert_true cc.respond_to?(:foo)
assert_equal 42, c.new.foo
b = c.class_eval("class A; def a; 55; end; end; class B; def b; A; end; end; B")
assert_equal 55, b.new.b.new.a
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment