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

Callback with positional and keyword args errors out in Ruby 3.2 #845

Open
rahul342 opened this issue Dec 11, 2023 · 0 comments
Open

Callback with positional and keyword args errors out in Ruby 3.2 #845

rahul342 opened this issue Dec 11, 2023 · 0 comments

Comments

@rahul342
Copy link

Describe the bug
If the callback has positional and keyword args, you get an ArgumentError with Ruby 3.2. Seems to be working in Ruby <= 3.1.

ArgumentError:
       wrong number of arguments (given 2, expected 1; required keyword: key)

This happens even if the keyword arg is optional.

To Reproduce
Steps to reproduce the behavior:
Here's a failing spec - #844

Expected behavior
Tests don't error out.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

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

1 participant