lib/rubocop/cop/mixin/minitest_cop_rule.rb in rubocop-minitest-0.19.1 vs lib/rubocop/cop/mixin/minitest_cop_rule.rb in rubocop-minitest-0.20.0

- old
+ new

@@ -14,13 +14,13 @@ # define_rule :assert, target_method: :instance_of?, inverse: true # # @param assertion_method [Symbol] Assertion method like `assert` or `refute`. # @param target_method [Symbol] Method name offensed by assertion method arguments. # @param preferred_method [Symbol] An optional param. Custom method name replaced by - # auto-correction. The preferred method name that connects + # autocorrection. The preferred method name that connects # `assertion_method` and `target_method` with `_` is # the default name. - # @param inverse [Boolean] An optional param. Order of arguments replaced by auto-correction. + # @param inverse [Boolean] An optional param. Order of arguments replaced by autocorrection. # def define_rule(assertion_method, target_method:, preferred_method: nil, inverse: false) preferred_method = "#{assertion_method}_#{target_method.to_s.delete('?')}" if preferred_method.nil? class_eval(<<~RUBY, __FILE__, __LINE__ + 1)