Replies: 1 comment 1 reply
-
How about setting Related issue #919 BeEmpty is about empty arrays, not even Hashes. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, am I missing something or are there just no cops that check for the above code at the moment?
I would expect these corrections:
The reason for that is that on failure the message is much more explicit instead of just saying that true/false != false/true. There are some cops I would expect to take here like
RSpec/PredicateMatcher
orRSpec/BeEmpty
but that's not happening.If this is missing at the moment I'd love to implement this myself but will need some guideance to which cops this logic would belong to.
Beta Was this translation helpful? Give feedback.
All reactions