Closed fatkodima closed 1 year ago
It is a very popular pattern:
# bad assert_equal(expected.object_id, actual.object_id) # good assert_same(expected, actual)
Tested on rails/rails codebase and got 11 offenses.
rails/rails
Thanks!
It is a very popular pattern:
Tested on
rails/rails
codebase and got 11 offenses.