rspec-mocks
rspec-mocks copied to clipboard
Any instance expectations with super/sub classes and nested blocks leak stubs.
When using nested method calls and blocks, stubbing a super class method will leak into the child class for the duration of the block. First reported on rspec/rspec-core#2563 (with reproduction over at https://github.com/jcavalieri/rspec_issue).
Attached commit demonstrates the issue.
Hello Jon
How do you want to proceed? This PR needs the fix too?
Thanks
@benoittgt This PR is just demonstrating the issue, it still needs fixing.