lib/rubocop/cop/minitest/refute_in_delta.rb in rubocop-minitest-0.11.1 vs lib/rubocop/cop/minitest/refute_in_delta.rb in rubocop-minitest-0.12.0
- old
+ new
@@ -13,11 +13,12 @@
#
# # good
# refute_in_delta(0.2, actual)
# refute_in_delta(0.2, actual, 0.001, 'message')
#
- class RefuteInDelta < Cop
+ class RefuteInDelta < Base
include InDeltaMixin
+ extend AutoCorrector
RESTRICT_ON_SEND = %i[refute_equal].freeze
def_node_matcher :equal_floats_call, <<~PATTERN
(send nil? :refute_equal $_ $_ $...)