rspec/rules/S5797/message.adoc

11 lines
308 B
Plaintext

=== Message
* If the constant is a function/method/lambda:
** Call this function/method/lambda; as a condition it is always True.
* If the constant is a class:
** Call this class; as a condition it is always True.
* Otherwise:
** Either remove this constant expression or make it return different values.