From 1f3d7e939f19ed19a3d45b269d66c1ad5606faaf Mon Sep 17 00:00:00 2001 From: ksss Date: Thu, 22 May 2014 00:11:40 +0900 Subject: Class.new add test case --- test/t/class.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/t/class.rb b/test/t/class.rb index bea20ee24..821259c5e 100644 --- a/test/t/class.rb +++ b/test/t/class.rb @@ -226,8 +226,13 @@ assert('Class Dup 2') do assert_equal(Module, M.dup.class) end -assert('Class new') do +assert('Class.new') do assert_equal(Class, Class.new.class) + a = [] + klass = Class.new do |c| + a << c + end + assert_equal([klass], a) end assert('class to return the last value') do -- cgit v1.2.3