lib/rubocop/cop/mixin/argument_range_helper.rb in rubocop-minitest-0.33.0 vs lib/rubocop/cop/mixin/argument_range_helper.rb in rubocop-minitest-0.34.0
- old
+ new
@@ -16,10 +16,10 @@
range_between(first_argument.source_range.begin_pos, second_argument.source_range.end_pos)
end
def all_arguments_range(node)
first_argument = node.first_argument
- last_argument = node.arguments.last
+ last_argument = node.last_argument
range_between(first_argument.source_range.begin_pos, last_argument.source_range.end_pos)
end
end
end