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

Fix ArgumentError message for without method #42274

Merged
merged 1 commit into from
May 22, 2021

Conversation

martinjaimem
Copy link
Contributor

@martinjaimem martinjaimem commented May 22, 2021

Summary

Closes #42273

There is an alias for the #excluding method called #without. When using without instead of excluding, if we don't pass a single or collection of the class objects, the error raised is:

You must only pass a single or collection of #{klass.name} objects to #excluding

when it should be

You must only pass a single or collection of #{klass.name} objects to #without

@martinjaimem martinjaimem force-pushed the fix/without-argument-error-message branch from 81e7f71 to 70dec80 Compare May 22, 2021 21:06
@kamipo
Copy link
Member

kamipo commented May 22, 2021

Failing tests aren't related to this PR, but evanphx/benchmark-ips#115, it is already addressed in main b63e147.

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

Successfully merging this pull request may close these issues.

Wrong ArgumentError message in without (AR) method
2 participants