-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Wrong number of arguments #94
Comments
Can you please provide a bit more context about the spec you’re dealing with? What if you set the breakpoint here, what seems off to you? |
The part you mention works. It complains about this part Line 169 in 14297a7
Although these 2 methods should be identical https://github.com/rspec/rspec-core/blob/1e661db5c5b431c0ee88a383e8e3767f02dccbfe/lib/rspec/core/example_group.rb#L158 and https://github.com/rspec/rspec-core/blob/1e661db5c5b431c0ee88a383e8e3767f02dccbfe/lib/rspec/core/example_group.rb#L161 vendoring the lib and replacing example with it helpedStill not sure if it's compatibility problems |
My apologies for being annoying. Let me repeat my questions. Can you please provide a bit more context about the spec you’re dealing with? What if you set the breakpoint here, what seems off to you? |
@pirj Sorry for the long response, I'll try to reproduce this and provide more detailed description |
I'm having the same issue. For me, this is happening because the gem I'm not entirely sure if it's a problem of the |
Do you want to send a PR? |
I can certainly push a change, but I can't say this is going to fix OP's issue since OP didn't provide a Gemfile to compare. |
That’s the best guess we have, and it will fix your issue that we know how to reproduce. If this it turns out not to fix the original issue, the author will reopen with details to reproduce. |
Fixed in #95, I think its bad form to override this method but we have a readily accessible work around in defining our own example creation method and using it. |
Rails 5.2
When using
[]
for accessing hash-subject attributeshttps://github.com/rspec/rspec-its/blob/main/lib/rspec/its.rb#L169
The text was updated successfully, but these errors were encountered: