Skip to content

Got ArgumentError with unknown keyword in Ruby 3.4.0-preview2Β #1769

Closed
@PikachuEXE

Description

@PikachuEXE

πŸ‘“ What did you see?

image

βœ… What did you expect to see?

No error

πŸ“¦ Which tool/library version are you using?

ruby 3.4.0-preview2
cucumber-ruby 9.2.0

πŸ”¬ How could we reproduce it?

I run bundle exec cucumber but the following is easier:

Ruby 3.3:
image

Ruby 3.4:
image

πŸ“š Any additional context?

Trying to fix CI for ruby-head for https://github.com/egonSchiele/contracts.ruby

Update 1: Rubocop added a cop for this: https://docs.rubocop.org/rubocop/cops_lint.html#linthashnewwithkeywordargumentsasdefault

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