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

How to ignore extra kwargs in expect? #926

Open
singpolyma opened this issue Sep 6, 2022 · 1 comment
Open

How to ignore extra kwargs in expect? #926

singpolyma opened this issue Sep 6, 2022 · 1 comment

Comments

@singpolyma
Copy link

I used to be able to:

mock.expect(:x, nil, [1, 2, Hash])

And it would allow any kwargs. The new kwargs support requires that I explicitly set the kwargs that I expect -- is there any way to just say that I know there are some optional kwargs but I don't expect any in particular?

@akefeli
Copy link

akefeli commented Jan 24, 2023

You could use the block, but I agree it was easier before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants