Sha256: 4972205e799dfbcd84a0dcbe9e7dd0f5e6c4bbe2278a62660ea3868dfd281710
Contents?: true
Size: 592 Bytes
Versions: 14
Compression:
Stored size: 592 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 < Base extend MinitestCopRule define_rule :refute, target_method: :match end end end end
Version data entries
14 entries across 14 versions & 1 rubygems