lib/rubocop/cop/minitest/assert_path_exists.rb in rubocop-minitest-0.10.3 vs lib/rubocop/cop/minitest/assert_path_exists.rb in rubocop-minitest-0.11.0
- old
+ new
@@ -15,9 +15,10 @@
# assert_path_exists(path)
# assert_path_exists(path, 'message')
#
class AssertPathExists < Cop
MSG = 'Prefer using `%<good_method>s` over `%<bad_method>s`.'
+ RESTRICT_ON_SEND = %i[assert].freeze
def_node_matcher :assert_file_exists, <<~PATTERN
(send nil? :assert
(send
(const _ :File) {:exist? :exists?} $_)