card/spec/support/matchers/file_matchers.rb
Avoid the use of the case equality operator ===
. Open
Open
@size === @file.size
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for uses of the case equality operator(===).
Example:
# bad
Array === something
(1..100) === 7
/something/ === some_string
# good
something.is_a?(Array)
(1..100).include?(7)
some_string =~ /something/
Avoid the use of the case equality operator ===
. Open
Open
@size === @file.file.size
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks for uses of the case equality operator(===).
Example:
# bad
Array === something
(1..100) === 7
/something/ === some_string
# good
something.is_a?(Array)
(1..100).include?(7)
some_string =~ /something/