Ruby Issue Tracking System: Issueshttps://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112014-09-16T18:08:33ZRuby Issue Tracking System
Redmine Ruby master - Bug #10248 (Closed): Possible missing test or bug for Module#include and Module#pre...https://redmine.ruby-lang.org/issues/102482014-09-16T18:08:33Ztduehr (Timur Duehr)tduehr@gmail.com
<p>I've been implementing Module#prepend for JRuby. I ran into this test <a href="https://github.com/jruby/jruby/blob/master/test/jruby/test_method_cache.rb#L19" class="external">https://github.com/jruby/jruby/blob/master/test/jruby/test_method_cache.rb#L19</a></p>
<p>This was unexpected behavior for me. I've looked through both the MRI and rubyspec test cases and don't see a similar test.</p>
<p>If this behavior is intended, this test should be included in the suite. Currently, MRI passes this test for both include and prepend. When implementing include or prepend without referencing the MRI source code directly, the implementation won't necessarily pass this test.</p>