lib/rubocop/cop/minitest/assert_in_delta.rb in rubocop-minitest-0.10.3 vs lib/rubocop/cop/minitest/assert_in_delta.rb in rubocop-minitest-0.11.0
- old
+ new
@@ -16,9 +16,11 @@
# assert_in_delta(0.2, actual, 0.001, 'message')
#
class AssertInDelta < Cop
include InDeltaMixin
+ RESTRICT_ON_SEND = %i[assert_equal].freeze
+
def_node_matcher :equal_floats_call, <<~PATTERN
(send nil? :assert_equal $_ $_ $...)
PATTERN
end
end