-
-
Notifications
You must be signed in to change notification settings - Fork 763
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
2.99 does not warn properly when using an inner describe :symbol
#2025
Comments
Appropriate warning for this would be https://github.com/rspec/rspec-core/blob/v2.99.2/lib/rspec/core/metadata.rb#L139, right? |
A warning is triggered currently only if
But if you remove
If no-one has any bright ideas, I recommend closing this as "cannot reproduce". (Thanks to @SalvatoreT who helped me look into this.) |
How about |
https://github.com/rspec/rspec-core/blob/2-99-maintenance/spec/rspec/core/example_group_spec.rb#L360 suggests that |
I was on vacation Wednesday until today so I haven't had a chance to look into this yet. I hope to in the next day or so. |
I think you're right that this is handled properly. My confusion was comparing https://github.com/rspec/rspec-core/blob/v2.99.2/lib/rspec/core/metadata.rb#L184 vs https://github.com/rspec/rspec-core/blob/v3.3.1/lib/rspec/core/metadata.rb#L298 -- it looks like 2.99 is wrongly treating https://github.com/rspec/rspec-core/blob/v2.99.2/lib/rspec/core/example_group.rb#L327-L331 I agree with closing this, barring a clear repro case of a situation where 2.99 does not warn but should. |
See rspec/rspec-rails#1415 for an example user report. 2.99 should warn for this case but it does not. The problem is here:
https://github.com/rspec/rspec-core/blob/v2.99.2/lib/rspec/core/metadata.rb#L184
It still treats symbols as a special case like strings. Compare to:
https://github.com/rspec/rspec-core/blob/v3.3.1/lib/rspec/core/metadata.rb#L298
...which does not treat symbols as a special case.
The text was updated successfully, but these errors were encountered: