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