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

Mark any_instance proxy methods as private if they were private #1596

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Oct 2, 2024

For expect|allow_any_instance_of(...) we restored, and had tests for, method visibility such that private methods remained private after tests, but we did not actually make the proxy methods private... So when defining such methods we mark them as private if they were previously true for private_method_defined?, fixes #1584

@JonRowe JonRowe force-pushed the fix-any-instance-private-method-visibility branch from 98d7241 to e492850 Compare October 2, 2024 21:36
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.

expect_any_instance_of(…).not_to receive(…) makes a private instance method public
1 participant