lib/rubocop/cop/mixin/argument_range_helper.rb in rubocop-minitest-0.9.0 vs lib/rubocop/cop/mixin/argument_range_helper.rb in rubocop-minitest-0.10.0

- old
+ new

@@ -24,8 +24,18 @@ 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 + + range_between( + first_argument.source_range.begin_pos, + last_argument.source_range.end_pos + ) + end end end end