diff --git a/.rubocop.yml b/.rubocop.yml index 995c293e..9370a53c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -28,6 +28,8 @@ Naming/PredicateName: - def_node_search Naming/InclusiveLanguage: + Enabled: true + CheckStrings: true FlaggedTerms: behaviour: Suggestions: diff --git a/docs/modules/ROOT/pages/cops_minitest.adoc b/docs/modules/ROOT/pages/cops_minitest.adoc index 4d12242c..923a3911 100644 --- a/docs/modules/ROOT/pages/cops_minitest.adoc +++ b/docs/modules/ROOT/pages/cops_minitest.adoc @@ -560,7 +560,7 @@ If a Minitest class inherits from another class, it will also inherit its methods causing Minitest to run the parent's tests methods twice. This cop detects when there are two tests classes, one inherits from the other, and both have tests methods. -This cop will add an offence to the Child class in such a case. +This cop will add an offense to the Child class in such a case. === Examples diff --git a/lib/rubocop/cop/minitest/duplicate_test_run.rb b/lib/rubocop/cop/minitest/duplicate_test_run.rb index 645f9578..7e8cfaf0 100644 --- a/lib/rubocop/cop/minitest/duplicate_test_run.rb +++ b/lib/rubocop/cop/minitest/duplicate_test_run.rb @@ -7,7 +7,7 @@ module Minitest # it will also inherit its methods causing Minitest to run the parent's tests methods twice. # # This cop detects when there are two tests classes, one inherits from the other, and both have tests methods. - # This cop will add an offence to the Child class in such a case. + # This cop will add an offense to the Child class in such a case. # # @example # # bad