-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
RSpec/UnspecifiedException: break on non-send blocks to avoid false positives on functions named raise_exception
#1960
Conversation
Can I ask you for a review @pirj ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it fix #1954, too? Can you please add a spec and a changelog entry, or remove this mention from the pr description?
I’d say the cop should be disabled and deprecated, but if you’re fine with fizing it, I have no objections, too.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final nitpick from me 😬
8651d2a
to
18e94a8
Compare
18e94a8
to
a59315f
Compare
Fixes a false positive in the
UnspecifiedException
cop that is triggered when a function under test is literally calledraise_exception
orraise_error
.Resolves #1949.