lib/rubocop/cop/minitest/refute_false.rb in rubocop-minitest-0.10.3 vs lib/rubocop/cop/minitest/refute_false.rb in rubocop-minitest-0.11.0
- old
+ new
@@ -23,9 +23,10 @@
MSG_FOR_ASSERT_EQUAL = 'Prefer using `refute(%<arguments>s)` over ' \
'`assert_equal(false, %<arguments>s)`.'
MSG_FOR_ASSERT = 'Prefer using `refute(%<arguments>s)` over ' \
'`assert(!%<arguments>s)`.'
+ RESTRICT_ON_SEND = %i[assert_equal assert].freeze
def_node_matcher :assert_equal_with_false, <<~PATTERN
(send nil? :assert_equal false $_ $...)
PATTERN