Sha256: 8025088282c8caefc89ee72870da7cfa00a2dfdb9b149763cbdceba09525cc92
Contents?: true
Size: 591 Bytes
Versions: 10
Compression:
Stored size: 591 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Minitest # This cop enforces the test to use `refute_match` # instead of using `refute(matcher.match(string))`. # # @example # # bad # refute(matcher.match(string)) # refute(matcher.match(string), 'message') # # # good # refute_match(matcher, string) # refute_match(matcher, string, 'message') # class RefuteMatch < Cop extend MinitestCopRule define_rule :refute, target_method: :match end end end end
Version data entries
10 entries across 10 versions & 1 rubygems