Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@rahul342

Description

@rahul342

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions