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

Mocking methods changes Method#parameters. #1547

Open
ioquatix opened this issue Apr 26, 2023 · 1 comment
Open

Mocking methods changes Method#parameters. #1547

ioquatix opened this issue Apr 26, 2023 · 1 comment

Comments

@ioquatix
Copy link

When mocking a method, object.method(:mocked_method).parameters no longer reflects the original method.

I wonder if we can improve that? It may not be practical.

@JonRowe
Copy link
Member

JonRowe commented Apr 30, 2023

I guess because we splat and verify later, it probably is possible to improve this to define same parameter methods for the proxy, but it may break things... definietly would be keen to explore this

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

No branches or pull requests

2 participants