Skip to content

Commit

Permalink
fixup! [Fix #117] Add new Minitest/AssertWithTwoArguments cop
Browse files Browse the repository at this point in the history
  • Loading branch information
cstyles committed Feb 21, 2021
1 parent 912fd40 commit 0db8efb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rubocop/cop/minitest/assert_with_two_arguments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module Minitest
#
class AssertWithTwoArguments < Cop
MSG = 'Did you mean to use `assert_equal(%<arguments>s)`?'
RESTRICT_ON_SEND = %i[assert].freeze

def_node_matcher :assert_with_two_arguments?, <<~PATTERN
(send nil? :assert $_ $_)
Expand Down

0 comments on commit 0db8efb

Please sign in to comment.