code view

Modified on Wed, 1 Jul at 9:12 PM

test


summary = duplicates.map do |spec, files|
      files_list = files.to_a
      exact_match_file = files_list.find { |file| spec_files[spec].include?(file) }
      primary_file = exact_match_file || files_list.first
      other_files = files_list.reject { |file| file == primary_file }.join(', ')
      "    - **_#{spec}_** is listed in **_#{File.basename(primary_file)}_** but it will also run as part of **_#{other_files}_**."
    end


summary = duplicates.map do |specfiles|      files_list = files.to_a      exact_match_file = files_list.find { |filespec_files[spec].include?(file) }      primary_file = exact_match_file || files_list.first      other_files = files_list.reject { |filefile == primary_file }.join(', ')      "    - **_#{spec}_** is listed in **_#{File.basename(primary_file)}_** but it will also run as part of **_#{other_files}_**."    end

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article