diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/module.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/t/module.rb b/test/t/module.rb index 5ac794330..2e19f350f 100644 --- a/test/t/module.rb +++ b/test/t/module.rb @@ -522,3 +522,13 @@ assert('clone Module') do B.new.foo end + +assert('Module#module_function') do + module M + def modfunc; end + module_function :modfunc + end + + assert_true M.respond_to?(:modfunc) +end + |
