Sha256: cb3fed5f2d3382cf03a752d70c87655e6d4546977a3d542d12be1570d658ccf0
Contents?: true
Size: 542 Bytes
Versions: 7
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Minitest # This cop enforces to use `refute_empty` instead of # using `refute(object.empty?)`. # # @example # # bad # refute(object.empty?) # refute(object.empty?, 'message') # # # good # refute_empty(object) # refute_empty(object, 'message') # class RefuteEmpty < Base extend MinitestCopRule define_rule :refute, target_method: :empty? end end end end
Version data entries
7 entries across 7 versions & 1 rubygems