lib/parallel_tests/gherkin/runner.rb in parallel_tests-3.12.1 vs lib/parallel_tests/gherkin/runner.rb in parallel_tests-3.13.0
- old
+ new
@@ -55,10 +55,10 @@
sums = sums.sort_by { |word, _| sort_order.index(word) || 999 }
sums.map! do |word, number|
plural = "s" if (word == group) && (number != 1)
"#{number} #{word}#{plural}"
end
- "#{sums[0]} (#{sums[1..-1].join(", ")})"
+ "#{sums[0]} (#{sums[1..].join(", ")})"
end.compact.join("\n")
end
def cucumber_opts(given)
if given&.include?('--profile') || given&.include?('-p')