Sha256: f42255f8d3e0efccfb2d79174ec24a278abd46bb8fad238cba62b9896361add4
Contents?: true
Size: 583 Bytes
Versions: 6
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Minitest # 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
6 entries across 6 versions & 1 rubygems