From ffbf90bdc828068178459e4577b8bba6f1452778 Mon Sep 17 00:00:00 2001 From: ksss Date: Mon, 19 May 2014 19:28:42 +0900 Subject: Implement Module#initialize (15.2.2.4.31) --- test/t/module.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/t/module.rb') diff --git a/test/t/module.rb b/test/t/module.rb index 2072f1f3c..806824b70 100644 --- a/test/t/module.rb +++ b/test/t/module.rb @@ -340,6 +340,12 @@ assert('Module#included_modules', '15.2.2.4.30') do assert_true r.include?(Test4includedModules) end +assert('Module#initialize', '15.2.2.4.31') do + assert_kind_of Module, Module.new + mod = Module.new { def hello; "hello"; end } + assert_equal [:hello], mod.instance_methods +end + assert('Module#instance_methods', '15.2.2.4.33') do module Test4InstanceMethodsA def method1() end -- cgit v1.2.3