summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/class.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/t/class.rb b/test/t/class.rb
index 3dea2152f..996370ea9 100644
--- a/test/t/class.rb
+++ b/test/t/class.rb
@@ -222,6 +222,11 @@ assert('Class new') do
assert_equal(Class, Class.new.class)
end
+assert('Class do not leak method') do
+ m = class C; def m; end; end
+ assert_equal(m, :m)
+end
+
assert('Class#inherited') do
class Foo
@@subclass_name = nil