lib/rubocop/cop/minitest/assert_empty_literal.rb in rubocop-minitest-0.34.5 vs lib/rubocop/cop/minitest/assert_empty_literal.rb in rubocop-minitest-0.35.0
- old
+ new
@@ -20,10 +20,10 @@
MSG = 'Prefer using `assert_empty(%<arguments>s)`.'
RESTRICT_ON_SEND = %i[assert_equal].freeze
def_node_matcher :assert_equal_with_empty_literal, <<~PATTERN
- (send nil? :assert_equal ${hash array} $...)
+ (send nil? :assert_equal ${hash array} $_+)
PATTERN
def on_send(node)
assert_equal_with_empty_literal(node) do |literal, matchers|
return unless literal.values.empty?