lib/rubocop/cop/minitest/refute_includes.rb in rubocop-minitest-0.6.2 vs lib/rubocop/cop/minitest/refute_includes.rb in rubocop-minitest-0.7.0

- old
+ new

@@ -7,19 +7,19 @@ # instead of using `refute(collection.include?(object))`. # # @example # # bad # refute(collection.include?(object)) - # refute(collection.include?(object), 'the message') + # refute(collection.include?(object), 'message') # # # good # refute_includes(collection, object) - # refute_includes(collection, object, 'the message') + # refute_includes(collection, object, 'message') # class RefuteIncludes < Cop - extend IncludesCopRule + extend MinitestCopRule - rule target_method: :refute, prefer_method: :refute_includes + define_rule :refute, target_method: :include?, preferred_method: :refute_includes end end end end