lib/rubocop/cop/minitest/refute_equal.rb in rubocop-minitest-0.10.3 vs lib/rubocop/cop/minitest/refute_equal.rb in rubocop-minitest-0.11.0
- old
+ new
@@ -17,9 +17,10 @@
class RefuteEqual < Cop
include ArgumentRangeHelper
MSG = 'Prefer using `refute_equal(%<preferred>s)` over ' \
'`assert(%<over>s)`.'
+ RESTRICT_ON_SEND = %i[assert].freeze
def_node_matcher :assert_not_equal, <<~PATTERN
(send nil? :assert ${(send $_ :!= $_) (send (send $_ :! ) :== $_) } $... )
PATTERN