Sha256: ae4d7e6346419625b3b16a0e3d0e4d885f8a7509d08e8e69feb13ffe17025dc6
Contents?: true
Size: 527 Bytes
Versions: 24
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Minitest # Enforces the use of `assert_equal(expected, actual)` # over `assert(expected == actual)`. # # @example # # bad # assert("rubocop-minitest" == actual) # # # good # assert_equal("rubocop-minitest", actual) # class AssertEqual < Base extend MinitestCopRule define_rule :assert, target_method: :==, preferred_method: :assert_equal end end end end
Version data entries
24 entries across 24 versions & 1 rubygems