lib/rubocop/cop/mixin/predicate_assertion_handleable.rb in rubocop-minitest-0.29.0 vs lib/rubocop/cop/mixin/predicate_assertion_handleable.rb in rubocop-minitest-0.30.0
- old
+ new
@@ -26,10 +26,10 @@
def autocorrect(corrector, node, arguments)
corrector.replace(node.loc.selector, "#{assertion_type}_predicate")
new_arguments = new_arguments(arguments).join(', ')
- corrector.replace(first_argument_range(node), new_arguments)
+ corrector.replace(node.first_argument, new_arguments)
end
private
def peel_redundant_parentheses_from(arguments)