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