Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

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

Closed
wants to merge 1 commit into 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
@JonRowe JonRowe closed this Nov 29, 2024
@JonRowe JonRowe deleted the any_instance_nested_call_error branch November 29, 2024 22:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants