lib/rubocop/cop/mixin/in_delta_mixin.rb in rubocop-minitest-0.17.2 vs lib/rubocop/cop/mixin/in_delta_mixin.rb in rubocop-minitest-0.18.0

- old
+ new

@@ -2,18 +2,18 @@ module RuboCop module Cop # Common functionality for `AssertInDelta` and `RefuteInDelta` cops. module InDeltaMixin - MSG = 'Prefer using `%<good_method>s` over `%<bad_method>s`.' + MSG = 'Prefer using `%<good_method>s`.' def on_send(node) equal_floats_call(node) do |expected, actual, message| message = message.first good_method = build_good_method(expected, actual, message) if expected.float_type? || actual.float_type? - message = format(MSG, good_method: good_method, bad_method: node.source) + message = format(MSG, good_method: good_method) add_offense(node, message: message) do |corrector| corrector.replace(node, good_method) end end