summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/class.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/t/class.rb b/test/t/class.rb
index 403a95f10..d6c0f1c9a 100644
--- a/test/t/class.rb
+++ b/test/t/class.rb
@@ -9,7 +9,15 @@ assert('Class superclass', '15.2.3.2') do
assert_equal(Module, Class.superclass)
end
-# Class#initialize '15.2.3.3.1' is tested in Class#new
+assert('Class#initialize', '15.2.3.3.1') do
+ c = Class.new do
+ def test
+ :test
+ end
+ end.new
+
+ assert_equal(c.test, :test)
+end
assert('Class#initialize_copy', '15.2.3.3.2') do
class TestClass