Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Sep 12, 2018

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.

@benoittgt
Copy link
Member

Hello Jon

How do you want to proceed? This PR needs the fix too?

Thanks

@JonRowe
Copy link
Member Author

JonRowe commented Sep 17, 2018

@benoittgt This PR is just demonstrating the issue, it still needs fixing.

@JonRowe JonRowe force-pushed the any_instance_nested_call_error branch from 1257e1f to 03654bc Compare October 2, 2019 15:00
@JonRowe JonRowe changed the base branch from master to main August 2, 2020 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants