Do not exclude spec_helper.rb from Rails/I18nLocaleAssignment cop

Use the around action to set the desired locale so we do not break the rule.
This commit is contained in:
Senén Rodero Rodríguez
2021-09-03 13:11:30 +02:00
parent 9938ab0017
commit 64278c663c
2 changed files with 6 additions and 3 deletions

View File

@@ -269,8 +269,6 @@ Rails/HttpStatus:
Rails/I18nLocaleAssignment:
Enabled: true
Exclude:
- "spec/spec_helper.rb"
Rails/InverseOf:
Enabled: true