Skip to content

Any instance expectations with super/sub classes and nested blocks leak stubs.

gitlab-qa-bot requested to merge any_instance_nested_call_error into main

Created by: JonRowe

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.

Merge request reports