-
Notifications
You must be signed in to change notification settings - Fork 14
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
Duck types are sensitive to argument names #71
Comments
Is there any workaround for this issue? I have a bunch of classes and some define Edit: For now I can "manually" define the delegated methods, though I'm more interested in a Bogus-specific workaround for this problem. |
There is no workaround for this, although the fix would be fairly simple - you can just strip argument names from the parameters list when comparing here: https://github.com/psyho/bogus/blob/master/lib/bogus/fakes/makes_ducks.rb#L33 However, this might not work in your particular case. If I remember correctly, |
You're right, I didn't know about it, thanks! I think it's time to rethink the usage of the RuboCop |
For example:
The text was updated successfully, but these errors were encountered: