lib/rubocop/cop/mixin/minitest_cop_rule.rb in rubocop-minitest-0.29.0 vs lib/rubocop/cop/mixin/minitest_cop_rule.rb in rubocop-minitest-0.30.0
- old
+ new
@@ -62,10 +62,10 @@
if enclosed_in_redundant_parentheses?(node)
new_arguments = '(' + new_arguments + ')'
end
- corrector.replace(first_argument_range(node), new_arguments)
+ corrector.replace(node.first_argument, new_arguments)
end
private
def peel_redundant_parentheses_from(arguments)