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

Default Configuration#strict_keyword_argument_matching to true in Ruby >= v3.0 #697

Open
floehopper opened this issue Dec 8, 2024 · 0 comments

Comments

@floehopper
Copy link
Member

From the docs:

When this option is set to false a positional Hash and a set of keyword arguments are treated the same during comparison, which can lead to misleading passing tests in Ruby >= v3.0 (see examples below). However, a deprecation warning will be displayed if a positional Hash matches a set of keyword arguments or vice versa. This is because #strict_keyword_argument_matching= will default to true in the future.

@floehopper floehopper changed the title Consider making Configuration#strict_keyword_argument_matching true by default in Ruby >= v3.0 Consider defaulting Configuration#strict_keyword_argument_matching to true in Ruby >= v3.0 Dec 8, 2024
@floehopper floehopper changed the title Consider defaulting Configuration#strict_keyword_argument_matching to true in Ruby >= v3.0 Default Configuration#strict_keyword_argument_matching to true in Ruby >= v3.0 Dec 8, 2024
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