#571: #respond_to? should return false for unimplemented methods ---------------------------------+------------------------------------------ Reporter: honglilai@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Comment(by maxime.curioni@…): Replying to [comment:1 lsansonetti@…]:
Let's follow MRI here and register a common implementation symbol for unimplemented methods, then refresh the UNAVAILABLE_IMP macro to also check for this symbol.
I followed Laurent's recommendation and added the test (whether the current method is equal to rb_f_notimplement) to the UNAVAILABLE_IMP macro. To test it, I updated spec/frozen/core/process/fork_spec.rb, to skip the old spec. I am new to MacRuby so I don't know if changing specs in the frozen directory or specifying specs just for our implementation is the way to go. Please share any criticism/comment you may about my patch. -- Ticket URL: <http://www.macruby.org/trac/ticket/571#comment:2> MacRuby <http://macruby.org/>