Closed
Description
Rails/SkipsModelValidations cop doesn't complain about the following relation:
belongs_to :user, touch: true
but it does complain in its test (Avoid using touch because it skips validations.):
it { should belong_to(:user).touch(true) }
Expected behavior
Complain in both cases or in any of them. I would say that it should also complain in the relation.
RuboCop version
0.47.1
Originally opened at rubocop/rubocop#4098
Metadata
Metadata
Assignees
Labels
No labels
Activity