Actions
Bug #8166
closedSince r39628 rspec-mock's and_call_original fail with SystemStackError
Description
Hello,
By r39628 [Feature 8035], Module#ancestors for a singleton class contains singleton class itself.
It introduce a compatibility problem with rspec-mock's RSpec::Mocks::MessageExpectation#and_call_original.
and_call_original uses Module#ancestors to find the original method overridden by a singleton method. Because ancestors contains singleton class itself, `original_method' return stub method and fall into infinite recursive call.
I think hiding singleton class from ancestors is better even when a modules is pretended.
Actions
Like0
Like0Like0Like0Like0Like0